To what value do nonglobal variables default?
1) auto
2) register
3) static
Answers were Sorted based on User's Feedback
Answer / anilkumar927@gmail.com
static
explation:
all non global variables are act as static
all local variables are act as auto
| Is This Answer Correct ? | 0 Yes | 1 No |
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is a void pointer? When is a void pointer used?
What are conditional operators in C?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
What is the difference between malloc calloc and realloc in c?
write a function for strtok()??
print out of string in this format; 1. "rajesh" 2. \n 3. %d
write a program which will count occurance of a day between two dates.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
How would you rename a function in C?