main()

{

printf("%d", out);

}

int out=100;

Answers were Sorted based on User's Feedback



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

Answer / akshata

compile time error:
undefined symbol 'out'

Is This Answer Correct ?    9 Yes 1 No

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

Answer / susie

Answer :

Compiler error: undefined symbol out in function main.

Explanation:

The rule is that a variable is available for use from the
point of declaration. Even though a is a global variable, it
is not available for main. Hence an error.

Is This Answer Correct ?    6 Yes 0 No

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

Answer / lucky varshney

100
bcz int out=100is globle diclearation

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C Code Interview Questions

What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 Answers  


How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...

6 Answers   Microsoft, MSD, Oracle,


what is oop?

3 Answers  


Write a program to print a square of size 5 by using the character S.

6 Answers   Microsoft,






can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"

2 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }

1 Answers  


why the range of an unsigned integer is double almost than the signed integer.

1 Answers  


main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above

2 Answers   HCL, LG,


main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }

1 Answers   DCE,


main() { main(); }

1 Answers  


Categories