What are the different types of storage classes in C?
Answer Posted / 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 |
Post New Answer View All Answers
What is preprocessor with example?
Explain the difference between ++u and u++?
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;i
Is it possible to pass an entire structure to functions?
What is the difference between procedural and functional programming?
How can you access memory located at a certain address?
How can I change the size of the dynamically allocated array?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is c language in simple words?
How to define structures? ·
Does * p ++ increment p or what it points to?
What is %g in c?
Where can I get an ansi-compatible lint?
What is mean by data types in c?
How can I write a function analogous to scanf?