plz send me all data structure related programs
Answers were Sorted based on User's Feedback
Answer / prof.muthu
stack,queue,tree,graph....
these are muthu's data structure...,
plant,fruits,line
if u want to learn my data structure please feel free to
call me!
ph:+919962940220
by prof.muthu....(c/o Anitha mosess)
| Is This Answer Correct ? | 2 Yes | 4 No |
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
#define a 10 int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } void foo() { #undef a #define a 50 }
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
why is printf("%d %d %d",i++,--i,i--);
write a c program to Reverse a given string using string function and also without string function