void main()
{
int a[]={1,2,3,4,5},i;
for(i=0;i<5;i++)
printf("%d",a++);
getch();
}
Answer Posted / chhaya
Here , in program array is given of 5 element. But at d
time of printing output ,increase address not pointer
i.e.
a[i]={1,2,3,4,5}
then u wnat to print array
Printf("%d",i++);
getch();
this sentence is requird. because array is set of element
and element is pointed by "pointer". If u wnt to show
element then use pointer not address of array.....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between array and structure in c?
What are the advantages of using macro in c language?
What is zero based addressing?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is the -> in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Is c a great language, or what?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is a string?
Why is extern used in c?
When is a null pointer used?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
How can I send mail from within a c program?
What is union in c?
What is pivot in c?