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 |
What is null character in c?
who is the founder of c
19 Answers College School Exams Tests, HP,
What is type qualifiers?
#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }
Explain how do you declare an array that will hold more than 64kb of data?
Write a program for Overriding.
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none
Define circular linked list.
Tell me when would you use a pointer to a function?
how to determine the complexity of an algorithm as log(n)
Simplify the program segment if X = B then C ← true else C ← false
How are portions of a program disabled in demo versions?