main()

{

extern out;

printf("%d", out);

}

int out=100;



main() { extern out; printf("%d", out); } ..

Answer / susie

Answer :

100

Explanation:

This is the correct way of writing the previous program.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More C Code Interview Questions

main() { if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

3 Answers   HCL,


how to swap 3 nos without using temporary variable

4 Answers   Satyam,


Is it possible to print a name without using commas, double quotes,semi-colons?

7 Answers  


find simple interest & compund interest

2 Answers  


1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?

2 Answers  






write a c program to print magic square of order n when n>3 and n is odd?

1 Answers   HCL,


main() { printf("%d", out); } int out=100;

3 Answers  


main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }

1 Answers   TCS,


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

2 Answers   CNSI,


In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  


Write a C program to add two numbers before the main function is called.

11 Answers   Infotech, TC,


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


Categories