Search code examples
cprintf

i printed hello world at fisrt but after changing it its showing the printing hello world again and again in the terminal


enter image description here

I wrote a program to print hello world at first.

#include <stdio.h>

int main() {

    printf("age is age");
   
    return 0;

}

and when I open in a terminal it keeps showing hello world as I wrote it previously.


Solution

  • The white dot after the file name indicates you haven't saved the changes in the file. In order to compile the changes, You have to save the file before compiling it otherwise it will recompile the last saved file.

    This will definitely work

    1. save the file. [ctrl + S]
    2. recompile the file.
    3. run the .exe file