EmbLogic's Blog

pointers

what is meant by :
#include<stdio.h>

int main( int argc ,char*argv[])

{

}

3 Responses to pointers

  1. jasmeen says:

    argc is number of command line arguments
    and argv[0] points to name of file , argv[1] points to first command line argument and vice versa
    for eg
    u execute
    ./a.out 1 2 3 4
    argc=4
    argv[0]= ./a.out
    argv[1]=1
    argv[2]=2
    argv[3]=3
    argv[4]=4

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>