#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 |
Explain following declaration int *P(void); and int (*p)(char *a);
What is storage class?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is the function of multilevel pointer in c?
What is the general form of #line preprocessor?
Explain the bubble sort algorithm.
Explain how does flowchart help in writing a program?
Is there sort function in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How can you read a directory in a C program?
Is there a way to compare two structure variables?
what are the general concepts of c and c++