#include<stdio.h> int main(int args,char *argv[]) { int i=0; for(i=0;i<args;i++) printf("n%s",argv[i]); return 0; }
Output : Carry out following Steps to Run
- Save Program
- Compile Program.
- Run Program.
- Now Open Command Prompt.
- Move to the directory where program is saved.
- Type following command.
C:>TC>BIN>pgm1 Amit Thakur C:>TC>BIN>pgm1.exe Amit Thakur
No comments:
Post a Comment