What is typeof in c?



What is typeof in c?..

Answer / Sudhir Singh Rajput

typeof is not a standard keyword in C. However, it might be found in some compilers as an extension. In such cases, typeof can be used to get the type of an expression at compile time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

any "C" function by default returns an a) int value b) float value c) char value d) a & b

1 Answers  


For what purpose null pointer used?

1 Answers  


what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }

6 Answers   IBM,


Write a program to find factorial of a number using recursive function.

1 Answers   Global Logic, TCS,


What are identifiers in c?

1 Answers  


What is the purpose of ftell?

1 Answers  


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1 Answers  


Is it possible to initialize a variable at the time it was declared?

1 Answers  


What are the differences between Structures and Arrays?

1 Answers   TCS,


what does ‘Bus Error’ mean?

1 Answers   ABC,


What is the benefit of using an enum rather than a #define constant?

1 Answers  


#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?

3 Answers  


Categories