How do I get a null pointer in my programs?
No Answer is Posted For this Question
Be the First to Post Answer
writw a program to insert an element in the begning of a doubly linked list
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How many types of functions are there in c?
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
int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf("b"); n++; continue; default : printf("c"); break; } break; }
What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
Write any data structure program (stack implementation)
What is a method in c?
Is c easier than java?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y
how to multiply two number taking input as a string (considering sum and carry )