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
What are the two types of structure?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Explain how can a program be made to print the line number where an error occurs?
What are file streams?
What is the value of uninitialized variable in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Why do we use return in c?
What is a stream?
How can you call a function, given its name as a string?
How can I read and write comma-delimited text?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
write a program to rearrange the array such way that all even elements should come first and next come odd
What is methods in c?
what is the difference between class and unio?
Write a program to print fibonacci series without using recursion?