Skip to content

Askmeabout

Lets share our knowledge

  • Home
  • Blog
  • Q & A
  • About
  • Contact Me
  • Privacy Policy

How do you initialize an array in C?

Q & A › How do you initialize an array in C?
-1 Vote Up Vote Down
Admin Staff asked 5 years ago

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);

Share this:

  • Twitter
  • Facebook
  • WhatsApp
  • Pinterest

Like this:

Like Loading...
1 Answers
0 Vote Up Vote Down
Admin Staff answered 5 years ago

c) int arr[3] = {1,2,3};

Share this:

  • Twitter
  • Facebook
  • WhatsApp
  • Pinterest

Like this:

Like Loading...

Categories

  • Environment
  • Science
  • Technology
Copyright © 2025 Askmeabout. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.
%d