Is the following code legal?
struct a
{
int x;
struct a b;
}
Answers were Sorted based on User's Feedback
Answer / raghu
no this code is illegal.
legal one:
struct a
{
int x;
struct a *b;
}
| Is This Answer Correct ? | 26 Yes | 7 No |
Answer / preeti
no. It is illegal ..
Struct shd be ended by a semi colon ..
struct a
{
int x;
struct a b;
};
| Is This Answer Correct ? | 8 Yes | 2 No |
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
Why is c called a mid-level programming language?
Why c is called object oriented language?
How can you convert integers to binary or hexadecimal?
What are dangling pointers?
What is typeof in c?
convert 12345 to 54321 withoutusing strig
What are the characteristics of arrays in c?
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?