Explain the Difference between the New and Malloc keyword.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

How are 16- and 32-bit numbers stored?

0 Answers  


What are static functions?

1 Answers  


main() { int a[10]; printf("%d",*a+1-*a+3); }

2 Answers  


Differentiate between new and malloc(), delete and free() ?

0 Answers   iNautix,


Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?

6 Answers  


what is the use of ‘auto’ keyword?

1 Answers  


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


How can you invoke another program from within a C program?

0 Answers  


The statement, int(*x[]) () what does in indicate?

0 Answers  


What's the difference between calloc() and malloc()?

4 Answers  


What is a header file?

0 Answers  


Categories