Lion and tiger r there.lion lies on Monday,tuesday,wendsday and tiger lies on thursday,friday,saturday.
Lion said that today is one of those days when I lies.
Tiger said that today is one of those days when I lie too.Then find today?
@Mosam Patel: If you learn C/C++ thoroughly you can learn any programming language. .Net and Java does not require much programming as there are lots of readymade methods are available, henece only brilliant people can C/C++.
@Shaily Shah: The answer 0001 0002 0004 is correct. First and most important thing is "%p" will print memory address, not value pointed by pointer. So whatever output printed on screen (on screen , here 0001, 0002, 0004) are memory address. Now you initialised all pointers to memory location 0x0000 (at line p=r=q=0. After that you incremented each ponter one time. So after incrementing each pointer, ponter p will contain memory address 0x0001 (as char is of 1 byte), pointer q will contain memory address 0x0002 (as int is of 2 byte) and ponter r will contain memory address 0x0004 (as long is of 4 byte). Hence you are getting answer 0001 0002 0004. Got it.
Er Chandresh Prajapati
Er Chandresh Prajapati