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

Give the rules for variable declaration?

669


What is typedef example?

616


Explain the difference between ++u and u++?

633


How old is c programming language?

571


What is the difference between c and python?

579






Explain what are header files and explain what are its uses in c programming?

623


Is struct oop?

576


Define macros.

781


how to capitalise first letter of each word in a given string?

1428


What are derived data types in c?

606


Explain what is gets() function?

627


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2528


What is the g value paradox?

643


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

596


Why is c called c?

620