#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 does the error 'Null Pointer Assignment' mean and what causes this error?
what is recursion in C
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is the use of sizeof?
What is the difference between scanf and fscanf?
What is the maximum length of an identifier?
Does c have an equivalent to pascals with statement?
Does c have enums?
How many levels of pointers have?
what type of questions arrive in interview over c programming?
How to Throw some light on the splay trees?
What happens if header file is included twice?
What is the role of this pointer?
Is sizeof a keyword in c?
What is the difference between exit() and _exit() function?