main()
{
printf("%d", out);
}
int out=100;
Answers were Sorted based on User's Feedback
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 |
100
bcz int out=100is globle diclearation
| Is This Answer Correct ? | 2 Yes | 3 No |
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
write a c-program to find gcd using recursive functions
Is the following code legal? struct a { int x; struct a *b; }
write a c program to Reverse a given string using string function and also without string function
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
Which one is taking more time and why ? :/home/amaresh/Testing# cat time.c //#include <stdio.h> #define EOF -1 int main() { register int c; while ((c = getchar()) != EOF) { putchar(c); } return 0; } ------------------- WIth stdio.h:- :/home/amaresh/Testing# time ./time_header hi hi hru? hru? real 0 m4.202s user 0 m0.000s sys 0 m0.004s ------------------ Witout stdio.h and with #define EOF -1 =================== /home/amaresh/Testing# time ./time_EOF hi hi hru? hru? real 0 m4.805s user 0 m0.004s sys 0 m0.004s -- From above two case , why 2nd case is taking more time ?
How to read a directory in a C program?
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
Is it possible to type a name in command line without ant quotes?
main() { char name[10],s[12]; scanf(" \"%[^\"]\"",s); } How scanf will execute?