This is a question from some book. When u run it u would get base address of the arguments provided
that is, if u write in CMD "myprog one two three"
then the address would be like 65521 n 65525 n 65529 Means equal byte consumption by all the arguments. And YES it would always give difference of no matter how long string u provide.
Could anyone please tell me, How did this happen ?????????????
Thanks in advance
/* myprog.c*/
#include<stdio.h>
#include<conio.h>
int main(int argc,char *argv[])
{
int i;
for(i=0;i<=3;i++)
{
printf("%u \n",&argv[i]);
}
}