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
Describe newline escape sequence with a sample program?
Are pointers integers in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Why do we use null pointer?
If fflush wont work, what can I use to flush input?
How to implement a packet in C
Are the expressions * ptr ++ and ++ * ptr same?
If I have a char * variable pointing to the name of a function ..
What is a sequential access file?
When can a far pointer be used?
Is c is a low level language?
What are the types of macro formats?
What is the use of bitwise operator?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Write a c program to demonstrate character and string constants?