top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How can a variable be declared and initialized as an array in C?

0 votes
85 views
How can a variable be declared and initialized as an array in C?
posted Sep 7, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

By initializing the instruction

answer Sep 7, 2017 by Md Sohrab
0 votes

I would like to give the answer with the help of an example:
int arr[] = {1,2,3};

Here arr is an array name initialized with values 1, 2 and 3.

answer Sep 10, 2017 by Ganesh
Similar Questions
+2 votes

Say you are given an array which has all duplicate members except one, which out this non-duplicate member.

0 votes

Given an unsorted array which has a number in the majority (a number appears more than 50% in the array), how to find that number?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...