






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Topic:
AIM OF THE SESSION To Understand the concept of Command Line Arguments INSTRUCTIONAL OBJECTIVES This Session is designed to:
INTRODUCTION
Session Description
Sample Code : To Add two integers using Command Line Arguments #include <stdio.h> #include<stdlib.h> void main ( int argc, char *argv[] ) { int a,b,sum; if ( arg!=3) { return -1;} a=atoi(argv[1]); b=atoi(argv[2]); sum=a+b; printf(“%d”,sum); return 0} KLEF CTSD BES-
Program Execution Steps to execute the program 1 Go to the command prompt and type cmd 2 c:\users\harita>cd Documents c:\users\harita\cd Documents> cla 5 5 10 KELF CTSD BES-
REFERENCES FOR FURTHER LEARNING OF THE SESSION Reference Books: