diff --git a/Hello world b/Hello world index 3b7617c..0b313fd 100644 --- a/Hello world +++ b/Hello world @@ -2,5 +2,6 @@ int main() { printf("Hello, World!"); + printf("This is Divyanshu"); return 0; } diff --git a/pgm to read a line b/pgm to read a line index 174d15b..0f4bffd 100644 --- a/pgm to read a line +++ b/pgm to read a line @@ -2,17 +2,17 @@ #include int main() { - char c[1000] + char c[1000]; FILE *fptr; if ((fptr = fopen("program.txt", "r")) == NULL) { - print("Error! opening file") - exit(1) + printf("Error! opening file"); + exit(1); } scanf(fptr,"%[^\n]", c); - printf("Data from the file:\n%s", c); - close(fptr) + printf("Data from the file :\n%s", c); + close(fptr); return 0; }