Knowee
Questions
Features
Study Tools

sicsWhat is storage class for variable A in below code?void main() { int A; A = 10; printf("%d", A);}

Question

sicsWhat is storage class for variable A in below code?void main() { int A; A = 10; printf("%d", A);}

🧐 Not the exact question you are looking for?Go ask a question

Solution

The storage class for variable A in the provided code is automatic (auto). By default, all local variables are automatic (auto) in C.

Similar Questions

BasicsWhat is storage class for variable A in below code?void main() { int A; A = 10; printf("%d", A);}Optionsautoexternregisterstatic

Explain scope and life time of variables in C(Storage classes)

Select the correct answerAnalyse the code and choose the right option.#include <stdio.h>int main(){  extern int A;  printf("%d",A);  return 0;}A=550;OptionsThe code will print 0The code will print 550The code will give error undefined reference to variable A.The code will print garbage value

Which of the following is not a storage class specifier in C? a. auto b. register c. static d. volatile

What is the value of integer variable b, if we find programming statement like b=printf(“ES-CS201”); ans. garbage value 7 8 6

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.