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 how can you tell whether a program was compiled using c versus c++?

1071


How can you find the exact size of a data type in c?

977


What does a function declared as pascal do differently?

1079


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8011


can we have joblib in a proc ?

2252


Is there any data type in c with variable size?

1057


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1093


List the difference between a While & Do While loops?

1069


Why does notstrcat(string, "!");Work?

1101


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1759


What is the size of structure pointer in c?

1033


Can we access array using pointer in c language?

1054


Describe wild pointers in c?

1077


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1029


What is the explanation for the dangling pointer in c?

1079