NVIDIA Interview Question

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

Interview Answers

Anonymous

Sep 17, 2014

I gave the answer using bit operators.

Anonymous

Sep 21, 2017

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