-
-
Save mmikhan/750bb246a174a20a3041 to your computer and use it in GitHub Desktop.
// | |
// main.c | |
// midterm | |
// | |
// Created by Md Mazedul Islam Khan on 3/21/15. | |
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved. | |
// | |
#include <stdio.h> | |
int main(int argc, const char * argv[]) { | |
// insert code here... | |
printf("First line : Name\n"); | |
printf("Second line : Diir No, Street\n"); | |
printf("----------------------------------------------\n"); | |
printf("Third line : City, Pin code\n"); | |
return 0; | |
} |
The program is not running...
@ankit9787 not sure how I missed your query. Apologies for missing this. If you still need the answer, argv
and argc
are how command-line arguments are passed to main() in C and C++. You can find more information about this here.
@mayuri-7 I don't see anything wrong in the code. Can you please confirm how you are compiling your code? Do you use any IDE? If yes, which one you're currently using? Do you see any errors?
Using turbo c..No errrors bt o/p is not displayed on the screen
There's definitely something wrong on your setup then as I can confirm the relevant code provided in the gist still works fine as expected. You can test it here.
what is border line thing ???
It's simply a new line
Why did I have put those argument inside the main parenthesis
what is that int main(int argc, const char * argv[])