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
When was c language developed?
Explain what is the benefit of using an enum rather than a #define constant?
write a program to copy the string using switch case?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is C language ?
Explain spaghetti programming?
write a c program to find the sum of five entered numbers using an array named number
What are # preprocessor operator in c?
How can I read a binary data file properly?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Why is struct padding needed?
Is multithreading possible in c?
how many key words availabel in c a) 28 b) 31 c) 32
How can I read and write comma-delimited text?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.