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

Describe newline escape sequence with a sample program?

667


Are pointers integers in c?

619


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1476


Why do we use null pointer?

615


If fflush wont work, what can I use to flush input?

626






How to implement a packet in C

2405


Are the expressions * ptr ++ and ++ * ptr same?

676


If I have a char * variable pointing to the name of a function ..

666


What is a sequential access file?

656


When can a far pointer be used?

599


Is c is a low level language?

573


What are the types of macro formats?

617


What is the use of bitwise operator?

699


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2589


Write a c program to demonstrate character and string constants?

1693