What are the different types of storage classes in C?

Answers were Sorted based on User's Feedback



What are the different types of storage classes in C?..

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

What are the different types of storage classes in C?..

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

What are the different types of storage classes in C?..

Answer / hr@tgksolutions.com

 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

Post New Answer

More C Interview Questions

What is the default value of local and global variables in c?

0 Answers  


application attempts to perform an operation?

0 Answers  


int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }

2 Answers   Vector,


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


What is struct node in c?

0 Answers  






What are global variables and explain how do you declare them?

0 Answers  


Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  


Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 Answers  


for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float

1 Answers  


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

0 Answers  


What do you know about the use of bit field?

0 Answers  


What is bubble sort in c?

0 Answers  


Categories