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
How can you determine the maximum value that a numeric variable can hold?
Write a program to check prime number in c programming?
How can a string be converted to a number?
What is an array? What the different types of arrays in c?
What is the code in while loop that returns the output of given code?
Write a program to print factorial of given number without using recursion?
What is property type c?
What does %c mean in c?
Is c easy to learn?
Is c is a low level language?
How do you determine whether to use a stream function or a low-level function?
When can a far pointer be used?
Can static variables be declared in a header file?
What the advantages of using Unions?
What is the difference between int main and void main in c?