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...

I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?

Answer Posted / guest

You will have to declare a temporary variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better pointer or array?

1039


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1916


What is a stream?

1155


Tell me can the size of an array be declared at runtime?

1060


Is int a keyword in c?

989


How do you declare a variable that will hold string values?

1187


What is difference between union and structure in c?

1182


Is c weakly typed?

1034


What do you mean by scope of a variable in c?

1019


How many header files are in c?

1046


What is static memory allocation?

1187


How do I round numbers?

1017


What is #line?

1070


What are void pointers in c?

1006


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2242