Close
Close

Why is my C program not running??

   Danish Siddique

#include <stdio.h>
int main()
{
    printf("Hello World\n");
    return 0;
}

this is the program 

the popup window opens and straight away is closed...

  • Which compiler are you using?
    - Amit Kumar
  • there is no problem with your program this will print hello world and exit command before you see the result. for viewing output use 1. getch();at last this stops command to exit until you input a character 2. use:void main() avoid int to main() if you are not passing this to other program learn c programming: www.programmingsimplysolved.com
    - programmingsimplysolved

Answers

Ask Yours
Post Yours
Write your answer