#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
Can a variable be both constant and volatile?
What is union and structure?
What is the difference between array and pointer in c?
Can you return null in c?
What are external variables in c?
When would you use a pointer to a function?
What does typedef struct mean?
What are the advantages and disadvantages of a heap?
Write a program to check armstrong number in c?
Explain what are the advantages and disadvantages of a heap?
What does the && operator do in a program code?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is the difference between union and structure in c?
What is file in c language?
in iso what are the common technological language?