employer cover photo
employer logo
employer logo

SanDisk

Acquired by WD

Is this your company?

SanDisk Interview Question

First questions was about huffman coding. write a code for the same. Asked about image processing, define a 2d array as struct of struct. allocate memory to 2d array dynamically (int **arr)

Interview Answer

Anonymous

Jul 16, 2021

int **arr = (int **)malloc(row*sizeof(int*)); for(int i = 0; i < row; i++) { arr[i] = (int *)malloc(col*sizeof(int)); }