#include <stdio.h>
int main()
{
if ("X" <"x")
printf("X smaller than x
");
}
my question is whats the mistake in this program? find it and please tell me..
Answer Posted / sandeep
Friend
In c if we write string constants like "Hi" "Hello world"
etc,it will be just a poiinter unless u prints it.
So if pointer pointing "X" is greater "if will not be executed"
else if pointer pointing "x" is greater "if will be executed"
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the best way to store flag values in a program?
What is pointer in c?
What is hashing in c language?
How is a structure member accessed?
What is local and global variable in c?
What are runtime error?
Under what circumstances does a name clash occur?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What’s a signal? Explain what do I use signals for?
Are the variables argc and argv are local to main?
What is meant by operator precedence?
How do you search data in a data file using random access method?
What is bubble sort technique in c?
What is FIFO?
How does placing some code lines between the comment symbol help in debugging the code?