Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

C Programming :: Declarations and Initializations

31. What will be output of the following "c" code?

#include
void main ( )
{
int i, m=2, n=3;
for( i=0;m+n=5; m++)
printf("%d %d", m,n);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option A

Explanation:

error: lvalue required as left operand of assignment

Workspace


Tags:  No Tags on this question yet!

32. What will be output of the following "c" code?

#include
void main ()
{
int x =400, y;
y = x*x+x;
printf ("% d", y);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

33. What is the output of the following program?

void main()
{
int x,y, z;
x=2; y=1; z = 1;
if(x > y + z)
printf("Hello!\n");
else if (x < y+ z)
printf ("Hi!\n");
else
printf("Hey!\n");
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

answer is option B

x>y+Z 

2>1+1 = 2>2 false 

x<y+z 2<2 false

condition goes to else and prints Hey!

Workspace


Tags:  No Tags on this question yet!

34. What will be output of the following "c" code?

#include
void main ( )
{
int i, m=2, n=3;
for( i=0;m+n=5; m++)
printf("%d %d", m,n);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

35. What would be the output of the following C program ?

void main() {
int = 12345;
float x = 145.678;
printf ("%3d, %5d, %8d", i,i,i,);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

i not declared and in printf (,) is the extra is shows error

assume if int i=12345;

and all syntax is right then the answer will be 

12345,   12345,      12345

(check in GDB if you have any doubts)

Workspace


Tags:  No Tags on this question yet!

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

39. Find the output for the following C program

#include
int main()
{
int x=2,y=6,z=6;
x=y==z;
printf("%d",x);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Cisco

40. Find the output for the following C program

void main
{
int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Cisco