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 |
How can i find first 5 natural Numbers without using any loop in c language????????
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256
Write a program that reads a dynamic array of 40 integers and displays only even integers
Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.
16 Answers Aricent, Cisco, Directi, Qualcomm,
void main() { int i=5; printf("%d",i++ + ++i); }
How we will connect multiple client ? (without using fork,thread)
Write a C program to add two numbers before the main function is called.
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.
pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"
write a c-program to find gcd using recursive functions
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
How to palindrom string in c language?