#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 are the complete rules for header file searching?
What are the two types of functions in c?
What is the use of function in c?
What is an array? What the different types of arrays in c?
What are inbuilt functions in c?
What is the purpose of & in scanf?
How can you avoid including a header more than once?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What functions are used in dynamic memory allocation in c?
Explain which function in c can be used to append a string to another string?
Does sprintf put null character?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
what is the significance of static storage class specifier?
Is python a c language?
Explain argument and its types.