Execution start from right argv could not increased. Compiler will take the value first then increment. As first value was one.
So answer is one.
Vidi said:
(Tue, Jun 14, 2011 02:52:03 AM)
Can anyone elaborate on : char **argv[] used.
Ankur said:
(Fri, Jul 1, 2011 06:53:59 AM)
Can someone explain this output in detail ?
Sholvi.. said:
(Sun, Sep 25, 2011 02:49:49 PM)
I think here ...
argv[] means *argv and *argv[]=**argv
argv[0] or *argv contains address of string "myprog"
*argv[0]="myprog"
When we increament *argv it tends to next value stored as:
*argv[1]="one"
and as we can see in printf()=>"%s" is used so it will print the value of argv[1]
and we will get the ans:
Output: one
Rathika.B said:
(Mon, Jan 16, 2012 08:07:47 PM)
All mention only about argv. Then what about argc? what it can do here? & in function definition must match the parameters passing in command prompt. But we directly declare the strings here as one two three then how it accept?