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.

C Programming :: Variables & Data Types

Home > C Programming > Variables & Data Types > General Questions

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

#include
void main()
{
register int a=2;
printf("Address of a = %p",&a);
printf("Value of a = %d",a);
}

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

Answer: Option A

Explanation:

& (address of ) operator cannot be applied on register variables.

Workspace

Tags:

No Tags on this question yet!

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

#include
void main()
{
extern i;
printf("%d\n",i);
{
int i=20;
printf("%d\n",i);
}
}

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

Answer: Option C

Explanation:

The identifier i is available in the inner block
so using extern has no use in resolving it.

Workspace

Tags:

No Tags on this question yet!

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

#include
void main(){
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
}

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 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 D

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

36. When a variable of data type double is converted into float, then

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!

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 D

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

39. What is the output of the program?

#include
int main()
{
extern int a;
printf("%d\n",a);
return 0;
}

int a =20;

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

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace

Tags:

nagarro 

40. What will be the output?

main()
{
int i=3,a=4,n;
float t=4.2;
n = a*a / i + i / 2 * t + 2 + t;
printf("%d",n);
}

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

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Wipro