Array Operations - Section 1 :: Discussion


2.How do you initialize an array in C?
A.int arr[3] = (1,2,3);
B.int arr(3) = {1,2,3};
C.int arr[3] = {1,2,3};
D.int arr(3) = (1,2,3);
Answer:  Option  C
Explanation:

This is the syntax to initialize an array in C.

Tutorial Link:
Published by:

Comments are not available

Post your comments here:

Optional

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers