answersLogoWhite

0

define the array lets say

main()

{

int x[100];

for (int i=0;i<x;i++)

scanf("%d",&x[i]);

}

this way ull scan 100 characters if that is what you mean...if you need to print them a similar printf loop can be made

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Write a scanf statement to read the 78b45?

To read the string &quot;78b45&quot; using scanf, you can use the following statement: char input[6]; // Ensure the array is large enough to hold the string and the null terminator scanf(&quot;%5s&quot;, input); // Read up to 5 characters This will read up to 5 characters into the input array, allowing for the input &quot;78b45&quot; to be stored correctly.


Can you make up characters in fan fictions?

Yes you can, I have read a lot of fanfictions already on fanfiction.net with characters they made up


What is the difference between a numericial array and an associative array?

A numericial array is an array with keys made up of only integers. An associative array is an array with keys made up of anything that is not an integer. In some languages, it is possible to mix integer keys and non-integer keys into a mixed array.


What purpose is foreach function in php?

foreach is a simple loop mostly used to read an array line by line; $arr = array("one", "two" , "three"); foreach($arr as $c) { echo $c; } it'll output : onetwothree also try looking up the while loop


How long is 100 hundred dollars?

19 characters, including spaces.if you lined up 100 $1 bills, it would be about 73 1/2 feet long.


What is integer type array?

An array is a collection of similar data types. An integer array is nothing but a collection of integer data types. Ex: int a[100], int arr[100][100] There are several types. 1D array, 2D array, Multi-Dimensional array. But array is a contiguous allocation. And array size will always be positive. It can be given in the declaration stage or we can specify it dynamically by using malloc function. Ex: int *a; a=(int*)malloc(sizeof(int)*HOW_MANY_NUMBERS_YOU_WANT);


How do you flip an array without using flip function in PHP?

Use a for-loop starting at the length of the array and go backwards and build up a new array with the values.


How do you write a C Program to fill up an Integer Array?

Reference:cprogramming-bd.com/c_page1.aspx# array programming


What technology makes up the transducer?

A phased array.


What is a synonym and antonym of array?

Synonyms for array are display, arrangement, line up, or collection. Antonym is the opposite: disarray, random.


How can you mix up the order of values in a PHP array?

To shuffle an array in PHP is easy to do, all you need to use is the shuffle() function like shown below: &lt;?php $array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); shuffle($array); // array results will be randomly shuffled ?&gt;


Is there a way to use a variable to declare the size of an array in true basic?

! variable to declase the size of an array in True Basic ! set up a dummy value for array - any initial value &gt; 0 is fine. DIM array$(999) ! ask the user for the length of the array INPUT PROMPT "Enter array size " :size ! resize the array with user defined length MAT REDIM array$(size) ! program end END