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


Please Help Members By Posting Answers For Below Questions

How to write c functions that modify head pointer of a linked list?

552


Difference between pass by reference and pass by value?

670


Explain b+ tree?

639


What is a char in c?

559


How can you draw circles in C?

633






What is the condition that is applied with ?: Operator?

671


Why isn't it being handled properly?

653


How do you convert strings to numbers in C?

723


What is #include conio h?

603


What are the two forms of #include directive?

651


What is an identifier?

634


C program to find all possible outcomes of a dice?

1864


What are qualifiers and modifiers c?

561


Explain what are multibyte characters?

635


Explain what is the difference between text files and binary files?

624