struct ABC { int a; float b; char c; }; int main(){ struct ABC *ptr=(struct ABC *)0; ptr++; printf(“Size of structure is: %d”,*ptr); return 0; } Can u please explain this?
Please explain how to prints 1 to 100 without using loop and without using recursion!!.
Implemented stacks and queues. But still pending with link lists. Also done Multiple data Compression, created the master array and compressed file… decompression has to be still done.
int main(){ int a[]={10,20,30,40}; int i=3,x; x=1*a[--i]+2*a[--i]+3*a[--i]; printf(“%d”,x); }
Did successfully queue and stack. Performed each and evey operation successfully like 1.first check queue/stack is created or not. 2.enetr new element after checing the queue/stack is full or not. 3.delete element after checking the queue/stack is empty or not. … Continue reading
what is argc and argv used in main()??? by using sizeof i am getting char size of 1 but size of a char like ‘D’ is 4 when declaired under a char variable…why??
Done 8 programs of assignment 4(strings),working on pointers…
Completed assignment 3…But Still i do have a no. of doubts.
done assignment no. 3 except Q.8 i have following problems Q.5char to = 1,from = 2; to++ = from++; error is :lvalue required as left operand of assignment Q.4 float f=0.1f;int i; for(i=0;i<10;i++) f=f+0.1f; if(f==1.0f) this if condition should be … Continue reading
Done assignment 2,Q:7(checking a number for power of 2) using single expression. done 8 questions from 3rd assignment ,having problem in Q5:showing errors in assignment statements like i++=j++; and in Q8(print cycle of sine and cosine wave),i don’t understand what … Continue reading
completed assignment 2 but done Que:7(: to check that a given no. is a power of 2 or not) but not by using single expression.
i completed 9 questions of 2nd assignment….. in 9th question i declared a string of 10 character long but it can store 12 character long ……how is it possible ? sometime we take format specifier of double as %e or … Continue reading
Completed Assignment no 1(a doubt in qus no 6) and done 7 of 10 problems of asgn 2.