Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10541 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > printf() and scanf() > Questions and Answers

Q: What is the output of the following code?
#include "stdio.h"
extern int a;
main(){
printf("\na=%d",a);
return 0;

A. a=0 B. a=garbage value
C. error D. none of these

Answer and Explanation

Answer:error

Explanation:
Linking undefined symbol.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.