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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
which of the following statements is incorrect
   a.typedef struct new{
			int n1;
			char n2;
			} DATA;
   b.typedef struct {
		     int n3;
		     char *n4;	  
                     }ICE;
   c.typedef union {
		    int n5;
                    float n6;
		    } UDT;
   d.#typedef union {
		     int n7;
		     float n8;
		    } TUDAT;   	
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Answer
# 1
d
 
Is This Answer Correct ?    2 Yes 0 No
Mannucse
[Kiona]
 
  Re: which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Answer
# 2
Bot a and d are wrong.
 
Is This Answer Correct ?    0 Yes 0 No
Sanath
 
 
 
  Re: which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Answer
# 3
b and d are wrong..
 
Is This Answer Correct ?    1 Yes 0 No
Shruti
 
  Re: which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Answer
# 4
choice d.

Reason:
          The macro sign # is not applicable here.
Syntactical error!
 
Is This Answer Correct ?    0 Yes 0 No
Saudip Sen
 
  Re: which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Answer
# 5
d is the right answer
# should not be present at starting.
 
Is This Answer Correct ?    1 Yes 0 No
Phanitha
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is link list?  2
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line. Subex2
Add 2 64 bit numbers on a 32 bit machine NetApp3
write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview Satyam2
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; } Satyam3
find largest element in array w/o using sorting techniques. Zycus-Infotech2
main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that? Excel2
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator?? Verifone8
The differences between Windows XP and Windows Visa HCL7
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output? Hughes5
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc() TCS1
how to connect oracle in C/C++.  2
how to display 2-D array elements in spiral  1
What are the commands should be given before weiting C Program i.e, Cd.. like Infonet3
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks. Google3
what is calloc and malloc?  1
how many times of error occur in C  7
1,4,8,13,21,30,36,45,54,63,73,?,?. Franklin-Templeton5
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END  3
size maximum allocated by calloc() DELL1
 
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