312 views
0 votes
0 votes
#include<stdio.h>
#include<stdlib.h>

int main(int argc, char **argv)
{
    int i, j=0;
    for(i=0; i<argc; i++)
        j = j+atoi(argv[i]);
    printf("%d\n", j);
    return 0;
}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
`JEET asked Nov 28, 2018
970 views
#include<stdio.h int main() { char huge *near *far *ptr1; char near *far *huge *ptr2; char far *huge *near *ptr3; printf("%d, %d, %d\n", sizeof( ptr1), sizeof(ptr2), size...
2 votes
2 votes
0 answers
3
0 votes
0 votes
4 answers
4
Sanjay Sharma asked Jun 7, 2016
1,972 views
If a= 10 then what will be the value of b in a C language code.If b= a++ + a++ + a++;.30.23.33.Undefined behaviour