Examveda
Examveda

What are the different ways to initialize an array with all elements as zero?

A. int array[5] = {};

B. int array[5] = {0};

C. int a = 0, b = 0, c = 0;
int array[5] = {a, b, c};

D. All of the mentioned

Answer: Option D


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer