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   SiteMap shows list of All Categories in this site.
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 memory allocated by the following definition ?
int (*x)();
 Question Submitted By :: Rajesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the memory allocated by the following definition ? int (*x)();
Answer
# 1
The above code is function pointer declaration.So there is 
no memory allocated as it is just declaration and no value 
is being assigned to it........
 
Is This Answer Correct ?    0 Yes 0 No
Ningappa
 
  Re: What is the memory allocated by the following definition ? int (*x)();
Answer
# 2
Wrong!
Its a function pointer, therefore on a 32 bit platform for
example, 4 bytes are allocated for it.
 
Is This Answer Correct ?    2 Yes 0 No
Dddhacker
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the use of #pragma pack, wer it is used?  1
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y TCS2
Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above Accenture2
Write a program to interchange two variables without using the third variable? Accenture9
compute the nth mumber in the fibonacci sequence? TCS6
how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--); RMSI13
HOW DO YOU HANDLE EXCEPTIONS IN C? AppLabs2
without a terminator how can we print a message in a printf () function. NIIT3
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output? Ramco6
Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?  1
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass. Microsoft2
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]  1
What is the Difference between Class and Struct? Motorola9
What are the uses of pre-processor directives?  2
4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above Accenture4
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?  4
How can I set an array's size at run time?  7
Why doesn't C have nested functions?  1
n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } Wipro3
Please list all the unary and binary operators in C.  1
 
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