int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answer Posted / 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 |
Post New Answer View All Answers
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
how to capitalise first letter of each word in a given string?
how can I convert a string to a number?
When is a null pointer used?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How can I recover the file name given an open stream?
develop algorithms to add polynomials (i) in one variable
What is the -> in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I manipulate individual bits?
What does 3 periods mean in texting?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above