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
Why we use int main and void main?
What does calloc stand for?
What math functions are available for integers? For floating point?
Write a program which returns the first non repetitive character in the string?
When would you use a pointer to a function?
What is the purpose of clrscr () printf () and getch ()?
Place the #include statement must be written in the program?
please explain every phase in the "SDLC" in the dotnet.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
How can I recover the file name given an open stream or file descriptor?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is data structure in c and its types?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is structure data type in c?
What is && in c programming?