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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 ?    1 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 ?    4 Yes 0 No
Dddhacker
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST Adobe2
write a 'c' program to sum the number of integer values  5
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............ Infosys2
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.  1
what is the difference between. system call and library function? CDAC2
write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language  3
write a function for strtok()?? Verifone1
Give a method to count the number of ones in a 32 bit number?  1
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV Accenture3
How can I make a program in c to print 'Hello' without using semicolon in the code? C-DAC5
without using arithmatic operator solve which number is greater??????????  1
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]  2
If we give two names then this displays the connection between the two people. It is nothing but flames game  1
How can I call a function, given its name as a string? ABC-Telecom2
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element. Zycus-Infotech9
Is the C language is the portable language...If yes...Then Why...and if not then what is problem so it is not a Portable language..??? TCS1
Write a program to print all the prime numbers with in the given range ABC1
can i know the source code for reversing a linked list with out using a temporary variable? Honeywell6
What is volatile  2
what is the diference between pointer to the function and function to the pointer?  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