Pergunta de entrevista da empresa NVIDIA

Function to find the size of a datatype using different approaches(without using any built-in function).

Respostas da entrevista

Sigiloso

21 de set. de 2017

#define mysizeof(type) ((typeof(type)*(0)) + 1) - ((typeof(type)*)0)

Sigiloso

17 de set. de 2014

I gave the answer using bit operators.