ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what is the difference between malloc() and calloc() function?
 Question Submitted By :: A. Sujatha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between malloc() and calloc() function?
Answer
# 1
malloc will allocate memory according to the size we 
specified
calloc vil allocate memory as blockwise
and initialize by 0
 
Is This Answer Correct ?    0 Yes 1 No
Amritha Rose
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
write a program to generate 1st n fibonacci prime number  1
what is the difference between #include<> and #include”…”?  1
Can you think of a way when a program crashed before reaching main? If yes how?  2
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error HCL4
Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??  3
write a c program to accept a given integer value and print its value in words  3
can i know the source code for reversing a linked list with out using a temporary variable? Honeywell6
Explain the differences between public, protected, private and internal.  1
C program to perform stack operation using singly linked list  1
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice) Subex1
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??  4
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value. TCS7
write a program to find the number of even integers and odd integers in a given array in c language Olive-Tech2
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year TCS4
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]  4
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value Accenture3
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?  6
What is the memory allocated by the following definition ? int (*x)(); ADITI2
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO  5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com