int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answers were Sorted based on User's Feedback
Answer / sukant
The syntax for the if statement is also not correct..
The conditional assignment includes two == rather than a single =...
so,, the if statement wont consider that as a conditional statement and come out of it..
And, it will give an error in the printf(i=3); as the syntax is not apt.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is meant by int fun const(int a, int b) { .... ... }
Multiply an Integer Number by 2 Without Using Multiplication Operator
How do you list a file’s date and time?
How to removing white spces in c programming only bu using loops
`write a program to display the recomended action depends on a color of trafic light using nested if statments
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?
What is a spanning Tree?
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
what are the stoge class in C and tel the scope and life time of it?
What is restrict keyword in c?
Which is the best website to learn c programming?
Explain how can a program be made to print the name of a source file where an error occurs?