what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answers were Sorted based on User's Feedback
Answer / himanshu goel
fail
because here if is taking 0 boolean value means condition
becomes false and else will be executed
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / srikanth patchava
fail
if check value is thear or not ..if its thear it will got
frist printf other wise it will goto second printf
Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use int main?
What is an array in c?
Explain how are portions of a program disabled in demo versions?
Do you have any idea about the use of "auto" keyword?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Is it better to use malloc() or calloc()?
How can I write functions that take a variable number of arguments?
In which category does main function belong??
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
ASCII stands for
How will you allocate memory to a double pointer ?