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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
Is the following code legal?
struct a
    { 
int x;
 struct a b;
    }
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is the following code legal? struct a { int x; struct a b; }
Answer
# 1
yes, it is nested structure
 
Is This Answer Correct ?    2 Yes 4 No
Dilpreet
 
  Re: Is the following code legal? struct a { int x; struct a b; }
Answer
# 2
no this code is illegal.

legal one:

struct a
{
int x;
struct a *b;
}
 
Is This Answer Correct ?    7 Yes 0 No
Raghu
 
 
 
  Re: Is the following code legal? struct a { int x; struct a b; }
Answer
# 3
This code is illegal.
 
Is This Answer Correct ?    3 Yes 0 No
Siva
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
write a program to generate 1st n fibonacci prime number  1
i want to have a program to read a string and print the frequency of each character and it should work in turbo c  2
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value Accenture2
what is diff b/w huge & far & near pointer?? HCL1
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT IBM1
write a program structure to find average of given number  1
wap in c to accept a number display the total count of digit  4
implement general tree using link list Wipro1
what is the diff b/w static and non static variables in C. Give some examples plz. Wipro2
2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x); HCL6
write a program to find out number of on bits in a number? Huawei12
how can i get output like this? 1 2 3 4 5 6 Excel3
why the execution starts from main function  9
pgm to find middle element of linklist(in efficent manner) Huawei2
write a recursive program in'c'to find whether a given five digit number is a palindrome or not  1
How the processor registers can be used in C ? HP4
What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack  5
CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position. Adobe4
Write a C program that reads a series of strings and prints only those ending in "ed"  2
Write a program to write a given string in maximum possibilities? i.e str[5]="reddy"; i.e we can write this string in 120 ways for that write a program Subex3
 
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