main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?
Answer Posted / vikesh
the answer will be India
if statement executes the statement if it is true i.e other
than "0"..[eg.if(1)]
here we are giving a=0 which implies false.
so the if statement doesnot execute first statement.
if you dont agree check following
main()
{
int a=0;
if(a=1)/*other than zero any number*/
printf("Ramco Systems\n")
printf("India\n");}
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is file in c preprocessor?
What is uint8 in c?
What is the difference between #include and #include 'file' ?
Why c is known as a mother language?
Define the scope of static variables.
What is keyword in c?
What are the uses of a pointer?
List the difference between a While & Do While loops?
Explain how can I open a file so that other programs can update it at the same time?
How can I dynamically allocate arrays?
Explain goto?
What are the disadvantages of external storage class?
What is assignment operator?
What oops means?