void main()
{
int a[]={1,2,3,4,5},i;
for(i=0;i<5;i++)
printf("%d",a++);
getch();
}

Answer Posted / jaya.vavilala

output is error.because we cannot inrease address of
array.if we increase address can be increased after go on
increasing after 5th position it cannot find where it is
present.so we cannot increase array directly through
pointer we can increase.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1518


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

615


how to introdu5ce my self in serco

1523


Do you have any idea about the use of "auto" keyword?

666


How is a pointer variable declared?

594






What is wrong with this initialization?

593


How can you increase the size of a statically allocated array?

619


Define and explain about ! Operator?

615


p*=(++q)++*--p when p=q=1 while(q<=6)

1268


What is atoi and atof in c?

618


Explain how to reverse singly link list.

607


What are the main characteristics of c language describe the structure of ac program?

614


What is the difference between text and binary i/o?

592


Is Exception handling possible in c language?

1585


Explain zero based addressing.

610