#include <stdio.h> extern char ** Environ; int main () { int nIndex = 0 ; for (nIndex = 0 ; Environ [nIndex] = NULL;! nIndex ++ ) { the printf ( " % S \ n- " , Environ [nIndex]); } } ---------------- Disclaimer: This article is CSDN blogger "dmfrm 'original article, follow the CC 4.0 BY- SA copyright agreement, reproduced, please attach the original source link and this statement. Original link: HTTPS: // blog.csdn.net/u010889616/article/details/48133325