Home > Software design >  i printed hello world at fisrt but after changing it its showing the printing hello world again and
i printed hello world at fisrt but after changing it its showing the printing hello world again and

Time:06-26

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.

CodePudding user response:

The only explanation that makes sense to me as to why this is happening is that you did not save the file before recompiling, so you're recompiling the same source and thus getting the same result when running a.exe.

CodePudding user response:

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
  • Related