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
Explain following declaration
int *P(void); 
and
int (*p)(char *a);
 Question Submitted By :: Anil Rai
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain following declaration int *P(void); and int (*p)(char *a);
Answer
# 1
int *p(void) - says this is function with null parameter 
and returns a pointer to an integer.

int (*p)(char *a) - says this is function with a pointer to 
a char a as  parameter and returns a pointer to an integer.
 
Is This Answer Correct ?    1 Yes 0 No
Tibu
 
  Re: Explain following declaration int *P(void); and int (*p)(char *a);
Answer
# 2
int* p(void) means p is a function that takes no argument a
return a pointer to integer.
int (*p)(char*a) means that p is a pointer to function that
take character pointer as argument and return an integer.
 
Is This Answer Correct ?    0 Yes 0 No
Vijay
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<= Siemens7
There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.  2
wats SIZE_T meant for?  1
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?  2
difference between i++* and *++i IBM2
write a c program to accept a given integer value and print its value in words  2
1,1,5,17,61,217,?,?.  3
wats the diference btwen constant pointer and pointer to a constant.pls give examples.  4
write a function to find whether a string is palindrome or not and how many palindrome this string contain?  1
How the C program can be compiled? HP6
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function. Temenos3
what is meant by c  4
How can I make a program in c to print 'Hello' without using semicolon in the code? C-DAC3
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 function pointer and where we will use it NetApp1
compute the nth mumber in the fibonacci sequence? TCS6
why r u join this company? give solid resons. Infosys3
write a program to insert an element at the specified position in the given array in c language  1
Write a program to compare two strings without using the strcmp() function Accenture6
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? IBM4
 
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