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

What does typedef struct mean?

1115


What does. int *x[](); means ?

1070


Where are some collections of useful code fragments and examples?

1164


Explain what is wrong with this statement? Myname = ?robin?;

1589


What is a 'null pointer assignment' error?

1219


What is the difference between the = symbol and == symbol?

1125


Why header files are used?

1118


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1558


When should a type cast not be used?

1067


What are dangling pointers in c?

1236


What is identifiers in c with examples?

1183


Can include files be nested?

1114


Function calling procedures? and their differences? Why should one go for Call by Reference?

1086


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2255


What's the total generic pointer type?

1055