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
What's the total generic pointer type?
Between macros and functions,which is better to use and why?
What is the difference between void main and main in c?
What is the purpose of main( ) in c language?
What is the method to save data in stack data structure type?
Explain what is the difference between functions getch() and getche()?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is the meaning of c in c language?
Explain how does free() know explain how much memory to release?
What is the use of sizeof () in c?
How do you determine a file’s attributes?
What are identifiers in c?
string reverse using recursion
Explain how are 16- and 32-bit numbers stored?
What’s a signal? Explain what do I use signals for?