Explain this code.
#include <stdio.h>
void f1(int *k)
{
*k = *k + 10;
}
main ( ){
int i;
i = 0;
printf (" The value of i before call %d \n", i);
f1 (&i);
printf (" The value of i after call %d \n", i);
}
Answer Posted / vivek
it will produce an error as constant cant be added to a pointer
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Are enumerations really portable?
Implement bit Array in C.
What are comments and how do you insert it in a C program?
application attempts to perform an operation?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
How do I use void main?
Difference between linking and loading?
What is external variable in c?
write a program to create a sparse matrix using dynamic memory allocation.
What is the difference between c and python?
What is extern c used for?
Explain about C function prototype?
Is main is user defined function?
What are the rules for identifiers in c?
What are the __date__ and __time__ preprocessor commands?