Is the following code legal?
typedef struct a aType;
struct a
{
int x;
aType *b;
};
Answer / susie
Answer :
Yes
Explanation:
The typename aType is known at the point of declaring the
structure, because it is already typedefined.
| Is This Answer Correct ? | 4 Yes | 0 No |
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
why is printf("%d %d %d",i++,--i,i--);
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,
Write a program to receive an integer and find its octal equivalent?
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
write a c-program to find gcd using recursive functions
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
what is brs test reply me email me kashifabbas514@gmail.com
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector