tag:blogger.com,1999:blog-959939550345671470.post4219423813426267593..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Write a c program to find the size of structure without using sizeof operatorPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-959939550345671470.post-61834961938411730732021-01-23T17:14:48.586+05:302021-01-23T17:14:48.586+05:30When we increment the pointer then pointer increas...When we increment the pointer then pointer increases a block of memory (block of memory depends on pointer data type). So here we will use this technique to calculate the size of a structure.Anonymoushttps://www.blogger.com/profile/16526693086139253595noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-34636754820465027142020-12-31T20:18:16.957+05:302020-12-31T20:18:16.957+05:30What will be the output of this program?plz tell a...What will be the output of this program?plz tell any1Darshihttps://www.blogger.com/profile/00051877502686489822noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-27387914033177101432019-09-01T08:27:43.629+05:302019-09-01T08:27:43.629+05:30the address range for char 102 to 105. how 105 is ...the address range for char 102 to 105. how 105 is coming (adding 3 bytes more). Can anyone please explain??jayhttps://www.blogger.com/profile/17395357859745503586noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-23819533298806036242019-07-20T12:07:25.474+05:302019-07-20T12:07:25.474+05:30Thanks TimThanks TimAnonymoushttps://www.blogger.com/profile/06149955053274078898noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-34577218284158105252015-08-11T15:17:42.126+05:302015-08-11T15:17:42.126+05:30when you create pointer to structure lets say
str...when you create pointer to structure lets say<br /><br />struct student *ptr;<br /><br />it will assign some memory address to its members such that<br /><br />address of-<br /><br />&ptr->roll 36857 the starting address<br />&ptr->name 36859 ( 36857 the starting address of roll + 2 bytes = 36859 the starting address of char name[100];)<br />&ptr->marks 36959 ( 36859Timhttps://www.blogger.com/profile/15286170814550492705noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-45032513080005116842013-05-08T12:08:10.725+05:302013-05-08T12:08:10.725+05:30Can any1 please explain above program????Can any1 please explain above program????Rajiv kashyaphttps://www.blogger.com/profile/06191971484898435152noreply@blogger.com