#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..
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raisa
character X and x should always be enclosed in single quotes
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / preethi
#include <stdio.h>
void main()
{
int X,x;
if (X <x)
printf("X smaller than x");
}
| Is This Answer Correct ? | 0 Yes | 3 No |
main() { charx; while (x=0;x<=255;x++) printf("\nAscii value %d Character %c,x,x); }
#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..
Which is an example of a structural homology?
Is there a way to switch on strings?
Explain demand paging.
What does the message "warning: macro replacement within a string literal" mean?
What is a keyword?
what is a headerfile?and what will be a program without it explain nan example?
What is nested structure?
main() { int a[10]; printf("%d",*a+1-*a+3); }
how to write palindrome program?
code for reverse alternate words from astring