what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the different data types in c?

761


When can a far pointer be used?

589


What is #include cctype?

581


What is integer constants?

625


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

734






What is void main () in c?

735


What does & mean in scanf?

604


What is preprocessor with example?

590


What is operator promotion?

630


Why c is procedure oriented?

575


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

921


What is binary tree in c?

625


What is the use of printf() and scanf() functions?

636


Explain what is wrong with this statement? Myname = ?robin?;

1027


What are two dimensional arrays alternatively called as?

662