recategorized by
1,857 views
2 votes
2 votes

If initialization is a part of declaration of a structure, then storage class can be

  1. automatic
  2. register
  3. static
  4. anything
recategorized by

1 Answer

2 votes
2 votes

coorect ans is : c

 

If initialization is a part of declaration of a structure, then the storage class can be static.

Storage class in C decides the part of storage to allocate memory for a variable; it also determines the scope of a variable. All variables defined in a C program get some physical location in memory where variable's value is stored. Memory and CPU registers are types of memory locations where a variable's value can be stored.

 

Static' variables are by default initialized with value 0.

 

 

Answer:

Related questions

4 votes
4 votes
1 answer
1
admin asked Apr 2, 2020
1,273 views
An external variableis globally accessible by all functionshas a declaration “extern” associated with it when declared within a functionwill be initialized to $0$ if ...
2 votes
2 votes
1 answer
2
admin asked Apr 2, 2020
824 views
For $x$ and $y$ are variables as declared below $\textit{double }x=0.005, \: y = – 0.01;$ What is the value of $\text{ceil }(x+y)$, where $\text{ceil }$ is a function t...
1 votes
1 votes
3 answers
3
admin asked Apr 2, 2020
1,080 views
In C programming language, if the first and the second operands of operator $+$ are of types int and float, respectively, the result will be of type intfloatcharlong int
1 votes
1 votes
1 answer
4
admin asked Apr 2, 2020
1,311 views
What will be the value of $x$ and $y$ after execution of the following statement(C language) n = 5; x = n++; y = -x;$5,-4$$6,-5$$6,-6$$5,-5$