C Programming Reference
 
C Programming Reference >> C  Programming Reference Question Bank >>

19/07/07 - 425 Views - No Ratings Yet

Level - Advance
      

Question -

What is the type of temp below?
typedef int (*test) ( float * , float*) 
 test tmp;  
Answer -
tmp  will be an int.
Explanation -

Typedef keyword in c is used to make alias name for data types. General form of usage of typedef keyword of C is shown below -

typdef oldname newname. 

So according to above typedef syntax all we did was that we made a new name data type test which was same as basic int data type even after that complicated looking statement. So finally tmp end as integer variable.

Reader Comments -

Author Comments
Add Comments 


Name :    
Reply :   


Rating :

Code :
Code

 

 
© 2006 cencyclopedia.com