Afficher un message
Vieux 16/10/2007, 20h20   #1
Ant Franck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to use a variable without reference

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

IS IT POSSIBLE?

please me

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