Tag Archives: E-14

E-14 Pointers

declared char *ptr; printed the address allocated to ptr (&ptr), garbage address of ptr (ptr ) and the garbage value (*ptr) Error: Segmentation Fault. Can you please explain why?

Posted in Data Structures with C | Tagged , , , | 5 Comments

E-14 pre-increment and logical operators

Initializing x,y,z=1 and after applying operation ++x||++y&&++z; The values when printed gives: x=2; y=1; and z=1; It increments  the value of x but does not increment the values of y and z.  can anyone please explain why?

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