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
Which is best linux os?
Why header file is used in c?
Explain union.
What's the total generic pointer type?
What is the difference between #include
Can one function call another?
What is optimization in c?
What are the advantage of c language?
When the macros gets expanded?
What's the difference between constant char *p and char * constant p?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Explain what are its uses in c programming?
how should functions be apportioned among source files?
What is difference between Structure and Unions?