Is malloc memset faster than calloc?


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

Post New Answer

More C Interview Questions

how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


Why clrscr is used in c?

0 Answers  


Is c procedural or functional?

0 Answers  


what is pointer

1 Answers   TCS,


What is the description for syntax errors?

0 Answers  






main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


what will be the output: main(){char ch;int a=10;printf("%d",ch);}

36 Answers   Accenture, TCS, Wipro,


what is bit rate & baud rate? plz give wave forms

0 Answers  


What is a constant and types of constants in c?

0 Answers  


#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {4,6,3,1}, {2,9,0,6}}; int *p; int (*q)[4]; p=(int*)a; q=a; printf("\n%u%u",p,q); p++; q++; printf("\n%u%u",p,q); getch(); return 0; } what is the meaning of this program?

2 Answers  


Why c is a mother language?

0 Answers  


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

0 Answers  


Categories