According to page 20 & 21 "Unix Network Proramming" W>Richard Stevens
the vale of argv and argc are in initialized read-only data. This
must mean that this is not changable inside the program ( Correct me
if I am wrong) But when I executed the program the result was
different
Program
========
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("the value of argv[0] is %s\n",argv[0]);
printf("\n\t\t changing the same \n\n");
argv[0]="test me";
printf("\n\n\a after change value of argv[0] is %s\n\n",argv[0]);
}
output
========
the value of argv[0] is ./mainchng