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...

void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.?

Answer Posted / masakali

2
4
6
8
10
16

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getche() function?

1089


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2161


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3608


Why do we use null pointer?

1118


How arrays can be passed to a user defined function

1070


Can we declare a function inside a function in c?

1097


What is structure in c explain with example?

1217


Explain what are bus errors, memory faults, and core dumps?

1317


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3382


What are volatile variables in c?

998


Explain high-order bytes.

1181


When a c file is executed there are many files that are automatically opened what are they files?

1153


What is the difference between Printf(..) and sprint(...) ?

1640


Can I initialize unions?

1093


What are unions in c?

1086