struct tag{
auto int x;
static int y;
};main()
{
struct tag s;
s.x=4;
s.y=5;
printf(“%d”,s.x);
}
Answers were Sorted based on User's Feedback
Answer / vishal soni
There is errors......
Because auto can't write in structure scope.... It is in functions
| Is This Answer Correct ? | 13 Yes | 3 No |
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
Explain what is wrong with this program statement? Void = 10;
what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?
#include<stdio.h> main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39
int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15
how can we print hellow world programme without using semicolon
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
How to implement a packet in C
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
what is level of tree if leaf node is at level 4.please explain.
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail