Afficher un message
Vieux 16/10/2007, 20h38   #3
Default User
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to use a variable without reference

Ant Franck wrote:

> hi friends,
>
> is it possible to call a variable from the main function to a sub
> fuction with out sending as a argument, pointer and can't declare as
> global variable?
>
> void main()
> {
> int a=10;
> fun();
> }
>
> fun()
> {
> printf("%d", a);
> }
>
> condition
> 1. don't use pointer concept
> 2.don't declare as global variable
> 3.don't send as arguments


Why?



Brian
  Réponse avec citation
 
Page generated in 0,04908 seconds with 9 queries