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
Is there a way to compare two structure variables?
Is fortran still used today?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is define c?
What is signed and unsigned?
what is the function of pragma directive in c?
Are local variables initialized to zero by default in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is a sequential access file?
What is structure pointer in c?
How to establish connection with oracle database software from c language?
How many types of errors are there in c language? Explain
What is formal argument?
What is c language & why it is used?
Tell me what is the purpose of 'register' keyword in c language?