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
What is getche() function?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Why do we use null pointer?
How arrays can be passed to a user defined function
Can we declare a function inside a function in c?
What is structure in c explain with example?
Explain what are bus errors, memory faults, and core dumps?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What are volatile variables in c?
Explain high-order bytes.
When a c file is executed there are many files that are automatically opened what are they files?
What is the difference between Printf(..) and sprint(...) ?
Can I initialize unions?
What are unions in c?