C Basic 31: Variable Constant

4 January 2020, 11:07 pm by antelove19

C programming language

C programming language



Happy Coding


main.c

/* ------------------------------------------------------------ */
/*  Variable                                                    */
/*  Using Constant                                              */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <stdio.h> // standar input output library

#define INT 10 // define constant

int main() {

    printf("This is using constant: %d \n", INT);

    getchar(); // hold the screen

    return 0;

}

Thank for reading :)



No Action Title
1 Live
2 Editor
0 comment