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
Explain the ternary tree?
What type is sizeof?
Do you have any idea about the use of "auto" keyword?
Is c programming hard?
write a program to display all prime numbers
Write a factorial program using C.
Is null always defined as 0(zero)?
What do you know about the use of bit field?
List some of the dynamic data structures in C?
How is a pointer variable declared?
How can I prevent another program from modifying part of a file that I am modifying?
Explain how many levels deep can include files be nested?
Explain what is the heap?
Which is best book for data structures in c?
What is boolean in c?