Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Are enumerations really portable?

1012


Implement bit Array in C.

1125


What are comments and how do you insert it in a C program?

1231


application attempts to perform an operation?

1959


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3501


How do I use void main?

1082


Difference between linking and loading?

1089


What is external variable in c?

1049


write a program to create a sparse matrix using dynamic memory allocation.

4880


What is the difference between c and python?

1155


What is extern c used for?

1042


Explain about C function prototype?

1072


Is main is user defined function?

1127


What are the rules for identifiers in c?

1054


What are the __date__ and __time__ preprocessor commands?

1092