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( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }
main() { char a[4]="HELL"; printf("%s",a); }
Write a C function to search a number in the given list of numbers. donot use printf and scanf
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }
main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }
29 Answers IBM, TCS, UGC NET, Wipro,
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
program to find magic aquare using array
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error
Print an integer using only putchar. Try doing it without using extra storage.