EmbLogic's Blog

Category Archives: Data Structures with C

Please Explain!

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?

Posted in Data Structures with C | 1 Comment

How to prints 1 to 100 without using loop and without using recursion!

Please explain how to prints 1 to 100 without using loop and without using recursion!!.

Posted in Data Structures with C | 1 Comment

Project 1

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.

Posted in Data Structures with C, Uncategorized | Leave a comment

Plz Explain how to solve this question?

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); }

Posted in Data Structures with C | Tagged | 4 Comments

Project 1

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

Posted in Data Structures with C | Tagged | Leave a comment

what is difference between argc and argv how to use it

Posted in Data Structures with C | 1 Comment

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??

Posted in Data Structures with C | 3 Comments

project 1

Done 8 programs of assignment 4(strings),working on pointers…

Posted in Data Structures with C | Leave a comment

Project 1(status)

Just completed assignment 3,,

Posted in Data Structures with C | Leave a comment

Project 01

Completed assignment 3…But Still  i do have a no. of doubts.

Posted in Data Structures with C | 1 Comment

project 1

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

Posted in Data Structures with C | Leave a comment

Project 1

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

Posted in Data Structures with C | Leave a comment

project 1

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.

Posted in Data Structures with C | Leave a comment

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

Posted in Data Structures with C | Leave a comment

Project 01

Completed Assignment no 1(a doubt in qus no 6) and done 7 of 10 problems of asgn 2.

Posted in Data Structures with C | Leave a comment