Is the following code legal?
void main()
{
typedef struct a aType;
aType someVariable;
struct a
{
int x;
aType *b;
};
}
Answer / susie
Answer :
No
Explanation:
When the declaration,
typedef struct a aType;
is encountered body of struct a is not known. This is known
as ‘incomplete types’.
Is This Answer Correct ? | 2 Yes | 1 No |
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
could you please send the program code for multiplying sparse matrix in c????
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }
Cau u say the output....?
To reverse an entire text file into another text file.... get d file names in cmd line
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
Printf can be implemented by using __________ list.
#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }