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

Explain void pointer?

971


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2045


Is the exit() function same as the return statement? Explain.

1036


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1030


can any one provide me the notes of data structure for ignou cs-62 paper

2118


What are volatile variables in c?

888


What does *p++ do? What does it point to?

1003


What are the two types of structure?

1040


can anyone please tell about the nested interrupts?

2064


What does sizeof return c?

1012


What does 4d mean in c?

1448


write a program to print data of 5 five students with structures?

2005


What is the use of structure padding in c?

1014


What does c mean before a date?

1104


What is the function of multilevel pointer in c?

1026