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

Explain how do you determine a file’s attributes?

1 Answers  


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

1 Answers  


How can I discover how many arguments a function was actually called with?

1 Answers  


Describe how arrays can be passed to a user defined function

1 Answers  


What is c variable?

1 Answers  


Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;

5 Answers   Accenture, TCS,


1.What is a Data Structure? Explain its need? 2.What is a Directed Graph? Write an algorithm to find whether a Directed Graph is connected or not? 3.Explain the process of converting a Tree to a Binary Tree.

4 Answers   Ignou, TCS,


What are the 5 types of organizational structures?

1 Answers  


How can you allocate arrays or structures bigger than 64K?

1 Answers  


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1 Answers  


What is the use of function in c?

1 Answers  


Explain how can type-insensitive macros be created?

1 Answers  


Categories