Welcome Guest | Sign in | Register
Functions - Discussion Page For Q.10768 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Functions > Questions and Answers

Q: What is the output of the following code?
#include "stdio.h"
extern int a;
main(){
void fun();
printf("\n a= %d",a);
fun();
return 0;
}
int a;
void fun(){
printf("\n in fun a=%d",a);
}
A. a=5 in fun a=0 B. a=0 in fun a=5
C. a=5 in fun a=5 D. a=0 in fun a=0

Answer and Explanation

Answer:a=5 in fun a=5

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




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