Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
}

Answer Posted / vignesh1988i

2222228344...

the above code can be remodified as :
printf("%d",*q); in first printf statement to get the same
output for both printf statements



thank u

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are examples of structures?

1112


What is double pointer in c?

1040


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2325


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1283


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1095


How can a process change an environment variable in its caller?

1187


Why do we use static in c?

1129


How can I remove the leading spaces from a string?

1170


How can I copy just a portion of a string?

1314


What are the types of data files?

1202


What are the types of pointers in c?

1029


What is a spanning Tree?

1587


Explain threaded binary trees?

1158


in linking some of os executables are linking name some of them

2132


Create a simple code fragment that will swap the values of two variables num1 and num2.

1287