Introduction

"Hello World" in C

#include <stdio.h>

int main() {
    char input[100];
    
    // Read until a new line is received
    scanf("%[^\n]%*c", input);
    
    printf("Hello, World!");
    printf("\n%s", input);
    
    return 0
}

Playing with Characters


Sum and Difference of Two Numbers


Functions in C


Pointers in C

Last updated

Was this helpful?