C Programming
Computer Programming

C file handling program to Print Environment Variables



Write C file handling program to Print Environment Variables

\* C file handling program to Print Environment Variables *\

# include < stdio.h >
int   main( int argc, char *argv[], char * envp[] )
{

int i ;
printf("\nAll System Enviroment Variables : \n") ;
for (i = 0 ; envp[i] != NULL ; i++ )
{
      printf("\n%s", envp[i]) ;
}
return 0 ;

}

Output of Program :

Output of C file handling program to Print Environment Variables