Can we declare function inside main?
No Answer is Posted For this Question
Be the First to Post Answer
What is substring in c?
What is the difference between text and binary modes?
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
What is main function in c?
Explain function pointer with exapmles.
Why is it usually a bad idea to use gets()? Suggest a workaround.
explain what is an endless loop?
What is #include conio h?
What is exit() function?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
What does calloc stand for?
What are the benefits of organizational structure?