main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?
Answer Posted / vikramanj
Actually compile time err wil occur..
Its "Possibly incorrect assignment"
Its due to if(a=0)??
Its wrong,we have to compare only while checking
conditions..
we have to use the operators which are used to check
conditions like ==,<=,>=....
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Can we add pointers together?
What is string length in c?
What are the differences between new and malloc in C?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
How many levels of pointers can you have?
What is break statement?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is meant by keywords in c?
What is c mainly used for?
Compare array data type to pointer data type
What is the need of structure in c?
How is = symbol different from == symbol in c programming?
What is the size of array float a(10)?
can anyone please tell about the nested interrupts?
How many data structures are there in c?