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 void pointer?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Is the exit() function same as the return statement? Explain.
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
can any one provide me the notes of data structure for ignou cs-62 paper
What are volatile variables in c?
What does *p++ do? What does it point to?
What are the two types of structure?
can anyone please tell about the nested interrupts?
What does sizeof return c?
What does 4d mean in c?
write a program to print data of 5 five students with structures?
What is the use of structure padding in c?
What does c mean before a date?
What is the function of multilevel pointer in c?