main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?
Answer Posted / vikesh
the answer will be India
if statement executes the statement if it is true i.e other
than "0"..[eg.if(1)]
here we are giving a=0 which implies false.
so the if statement doesnot execute first statement.
if you dont agree check following
main()
{
int a=0;
if(a=1)/*other than zero any number*/
printf("Ramco Systems\n")
printf("India\n");}
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
how to find binary of number?
Is that possible to add pointers to each other?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is LINKED LIST? How can you access the last element in a linked list?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What is bubble sort technique in c?
What is a constant and types of constants in c?
When should structures be passed by values or by references?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain how do you declare an array that will hold more than 64kb of data?
What do you mean by recursion in c?
what are bit fields? What is the use of bit fields in a structure declaration?
Explain how do you print an address?
What is difference between scanf and gets?
why programs in c are running with out #include