main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?

Answer Posted / fazlur rahaman naik

actually the output will b : India only.
the above programme doesn't produce any error at if(a =
0).because we r assiging value here, we r not comparing the
value here.so the condition will fail here and the next
statement after if condition will print.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Throw some light on the splay trees?

617


Difference between MAC vs. IP Addressing

635


What is the difference between a string and an array?

703


What is maximum size of array in c?

580


Can an array be an Ivalue?

657






What is a newline escape sequence?

665


Write a program to identify if a given binary tree is balanced or not.

680


What is static identifier?

701


Explain the use of 'auto' keyword in c programming?

679


Differentiate call by value and call by reference?

562


What is difference between union All statement and Union?

628


in iso what are the common technological language?

1631


Why c is procedure oriented?

566


What is the use of f in c?

553


What is signed and unsigned?

638