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
Explain how can you tell whether a program was compiled using c versus c++?
How can you find the exact size of a data type in c?
What does a function declared as pascal do differently?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
can we have joblib in a proc ?
Is there any data type in c with variable size?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
List the difference between a While & Do While loops?
Why does notstrcat(string, "!");Work?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is the size of structure pointer in c?
Can we access array using pointer in c language?
Describe wild pointers in c?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the explanation for the dangling pointer in c?