typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a :

a) Union

b) User defined type

c) Enumerated variable

d) none



typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union ..

Answer / Rajan Kumar

b) User defined type

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is #define in c?

1 Answers  


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1 Answers  


read a number & print all its devisors using c-program?

3 Answers  


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

1 Answers   Global Logic, TCS,


2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


What are logical errors and how does it differ from syntax errors?

1 Answers  


What is the diffrent between while and do while statement ?

6 Answers  


what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 Answers  


#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }

3 Answers   IBM,


What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.

11 Answers   TCS,


What is a built-in function in C?

2 Answers  


Categories