What are Storage Classes in C ?

Answer Posted / milind rane.

Storage classes in c are as follows:
1)Automatic storage class.
2)Register storage class.
3)Static storage class.
4)External Storage Class.

And here value stored in CPU Register can always be accessed
faster than the one that is stored memory.

Hope the Ans. is correct!

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the difference between realloc and free.

621


What is a nested loop?

641


What is the size of a union variable?

594


What is keyword in c?

594


What is anagram in c?

510






You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2706


Write a code on reverse string and its complexity.

595


Describe how arrays can be passed to a user defined function

774


What is echo in c programming?

549


Can static variables be declared in a header file?

607


What are the two types of structure?

567


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1757


How can you read a directory in a C program?

645


What is a pointer on a pointer in c programming language?

611


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

636