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 pass by reference in functions?
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
What is alloca() and why is its use discouraged?
How can you call a function, given its name as a string?
How we can insert comments in a c program?
What is console in c language?
how to find sum of 5 digits in C?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Total of how many functions are available in c?
What is file in c preprocessor?
how many errors in c explain deply
What are dangling pointers?