What is the main difference between calloc () and malloc ()?


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

Post New Answer

More C Interview Questions

What is a memory leak in structures? How can we rectify that?

2 Answers  


main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

2 Answers   Vector, Vector India,


What is c language used for?

0 Answers  


What are operators in c?

0 Answers  


Write the control statements in C language

0 Answers   Atos Origin,






class foo { public: static int func(const char*& p) const; }; This is illegal, why?

8 Answers   Google,


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What is a volatile keyword in c?

0 Answers  


Why do some versions of toupper act strangely if given an upper-case letter?

0 Answers  


3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r

3 Answers   Huawei,


find largest element in array w/o using sorting techniques.

3 Answers   Zycus Infotech,


1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?

0 Answers  


Categories