What is array of structure in c?
No Answer is Posted For this Question
Be the First to Post Answer
what is the difference between while and do while?
write a program to print calender using for loop.
Is c is a procedural language?
Explain the Difference between the New and Malloc keyword.
When should you use a type cast?
What is the advantage of using #define to declare a constant?
0 Answers Agilent, ZS Associates,
What are the advantages and disadvantages of a heap?
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
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Which is better malloc or calloc?
What are different storage class specifiers in c?
What does %c mean in c?