Answer Posted / srsabariselvan
an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the use of a ‘ ’ character?
How do you list a file’s date and time?
Can i use “int” data type to store the value 32768? Why?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
How do I convert a string to all upper or lower case?
Can you please explain the difference between syntax vs logical error?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
how is the examination pattern?
Do you know the use of fflush() function?
What is character constants?
How to delete a node from linked list w/o using collectons?
What is wrong with this statement? Myname = 'robin';
Explain how do you override a defined macro?
Write a program to reverse a string.
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only