what is the use of a array in c
Answers were Sorted based on User's Feedback
An array is a collection of similar elements(data types).
These similar elements could be all ints, or all floats, or
all chars, etc.
In an array all elements must e of same types.
In simple language, Arrays are used to give 'one' variable
the power to hold 'more than 1' values.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sameer
to have a collection of similar dta types in one varible
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saravanan j (srm universi
array concept is used to locate the memory allocation for
the variables
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abeera amin
array are data structure in which identical data type are
stored.and have contiguous area of memory.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shruti
Array is a collection of homogeneous data-types..
Is This Answer Correct ? | 0 Yes | 1 No |
By using C language input a date into it and if it is right?
what is mean by Garbage collection ? Please answer me. Advance thanks.
what's the return value of malloc()
prototype of sine function.
Give a method to count the number of ones in a 32 bit number?
Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
Why can arithmetic operations not be performed on void pointers?
what is the diffrenet bettwen HTTP and internet protocol
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
What is difference between scanf and gets?
Describe explain how arrays can be passed to a user defined function