#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 |
Write a program on swapping (100, 50)
Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?
Without using main fn and semicolon,print remainder for a given number in C language
Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error
Why c is called procedure oriented language?
Explain c preprocessor?
what is the coding of display the factorial of a number using array and function?
what is diff b/w huge & far & near pointer??
What is ambagious result in C? explain with an example.
what is the difference between <stdio.h> and "stdio.h"
14 Answers Invendis, Kanbay, Mastek, MathWorks,
Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
Explain about the constants which help in debugging?