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 / pooja agarwal

10

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of enum in c?

624


What is function prototype?

611


Explain what will the preprocessor do for a program?

605


What is openmp in c?

612


diff between exptected result and requirement?

1596






What does %p mean c?

632


Explain what does a function declared as pascal do differently?

642


What are predefined functions in c?

568


Write a code to remove duplicates in a string.

629


What are the application of c?

650


What are the advantages and disadvantages of a heap?

714


Why is c called "mother" language?

858


What is #include cctype?

580


Define recursion in c.

702


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

905