#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 action and transformation in spark?
How can I call fortran?
How does free() know explain how much memory to release?
What are the advantages of c language?
What is a good way to implement complex numbers in c?
What does %c do in c?
find the sum of two matrices and WAP for it.
How can I implement sets or arrays of bits?
What is static function in c?
What is the difference between new and malloc functions?
How do I read the arrow keys? What about function keys?
What library is sizeof in c?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Calculate 1*2*3*____*n using recursive function??
How can I swap two values without using a temporary?