Write a function to find size of variable without using the library function sizeof()
Anonymous
Use pointer arithmatic int a = 3 ; char* p1, *p2 ; p1 = (char*)&a ; p2 = (char*)((&a) + 1) ; size = p2 - p1
Check out your Company Bowl for anonymous work chats.