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 |
Explain the difference between #include "..." And #include <...> In c?
What should malloc(0) do?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
code for reverse alternate words from astring
What is Your Name :)
EXPLAIN #INCLUDE<STDIO.H> EXPLAIN #INCLUDE<CONIO.H>
If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.
What is the difference between fork() and vfork()?
wat s the meaning of (int *)p +4;
When can you use a pointer with a function?
how to generate the length of a string without using len funtion?
Is it acceptable to declare/define a variable in a c header?