Is the following code legal?
typedef struct a
{
int x;
aType *b;
}aType
Answer / susie
Answer :
No
Explanation:
The typename aType is not known at the point of declaring
the structure (forward references are not made for typedefs).
| Is This Answer Correct ? | 0 Yes | 1 No |
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)
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Cluster head selection in Wireless Sensor Network using C programming language.
main() { clrscr(); } clrscr();
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
0 Answers Mbarara University of Science and Technology,
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
How can you relate the function with the structure? Explain with an appropriate example.
main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024
#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }