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 does " calloc" do?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what does " calloc" do?
Answer
# 1
A memory allocation and initialising to zero.
 
Is This Answer Correct ?    5 Yes 0 No
Guest
 
  Re: what does " calloc" do?
Answer
# 2
calloc will reallocate the memeory created by malloc
 
Is This Answer Correct ?    0 Yes 5 No
Anjana Devi
 
 
 
  Re: what does " calloc" do?
Answer
# 3
a memory allocation for the multiple blocks i.e array of 
blocks and intialising the first block to zero.
 
Is This Answer Correct ?    0 Yes 1 No
Rani
 
  Re: what does " calloc" do?
Answer
# 4
Allocate memory where ever it is free and that to it is in
terms of block and initialises that block to zero.
 
Is This Answer Correct ?    0 Yes 0 No
Srinivas
 
  Re: what does " calloc" do?
Answer
# 5
This function allocates multiple blocks of memory of same
size, initializes all locations to zero and returns a
pointer to the first byte of allocated space.
 
Is This Answer Correct ?    0 Yes 0 No
Debu
 
  Re: what does " calloc" do?
Answer
# 6
the calloc function will allocate memory , and also 
initialise the variables to a particular value..
 
Is This Answer Correct ?    1 Yes 0 No
Shruti
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;  7
what is volatile in c language? TCS1
main is a predefined or user define function if user defined why? if predefined whay? TCS2
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning Accenture4
What is the real difference between arrays and pointers?  11
WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS  4
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } Motorola1
Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1) Quicksort 2) Linear Search 3) Bubble Sort  2
find a number whether it is even or odd without using any control structures and relational operators? Microsoft14
program for comparing 2 strings without strcmp()  3
c programming of binary addition of two binary numbers  1
write a program for odd numbers?  6
Hi, main() { } Is a user defined function or Built in Functionn Honeywell9
how many error occurs in C language ? Wipro11
what is object oriental programing?  1
how to find the size of the data type like int,float without using the sizeof operator?  7
palindrome for strings and numbers----Can anybody do the prog? TCS6
what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above Accenture2
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?  4
User define function contain thier own address or not.  2
 
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