+ 3

What is size of operator.

22nd Jan 2018, 5:15 PM
Dheeraj Yadav
Dheeraj Yadav - avatar
3 Réponses
+ 4
The sizeof operator in c/c++ gives how many bytes a variable or an object occupies in memory.
22nd Jan 2018, 5:18 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
+ 2
how can we apply it and wht is it's significance in programming
22nd Jan 2018, 5:19 PM
Dheeraj Yadav
Dheeraj Yadav - avatar
+ 2
It is typically used while allocating memory dynamically using malloc function in C. These are useful for creating dynamic data structures like Linked lists and trees etc...
22nd Jan 2018, 5:23 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar