What are the different types of storage classes in C?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Auto: Default storage class for local variables.
Static: Retains variable value between function calls.
Extern: Refers to global variables used in other files.
Register: Suggests storing variables in the CPU register.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
Auto: Default storage class for local variables.
Static: Retains variable value between function calls.
Extern: Refers to global variables used in other files.
Register: Suggests storing variables in the CPU register.
| Is This Answer Correct ? | 0 Yes | 0 No |
Auto: Default storage class for local variables.
Static: Retains variable value between function calls.
Extern: Refers to global variables used in other files.
Register: Suggests storing variables in the CPU register
| Is This Answer Correct ? | 0 Yes | 0 No |
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Prove or disprove P!=NP.
what is c
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters
WHO WROTE C LANGUAGE?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program
can we initialize all the members of union?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Explain function pointer with exapmles.
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]