i used this program to list env's but my question was if set ABC="Try me!" was entered would it be among the others or at the end?Code:#include<stdio.h> int main(int argc, char *argv[], char *env[]) { int i; char *set_ABC; for(i = 0; env[i] != NULL; ++i) printf("%s\n", env[i]); set_ABC ="Try me!"; return 0; }
Whats this...
c:\program files\microsoft visual studio\myprojects\ch14_ex1\ex1.cpp(10) : error C2440: '=' : cannot convert from 'char [8]' to 'char'



LinkBack URL
About LinkBacks


