Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Multi-line Comments in C

/* This program takes age input from the user
It stores it in the age variable
And, print the value using printf() */

#include <stdio.h>

int main() {
    
  int age;
  
  printf("Enter the age: ");
  scanf("%d", &age);
 
  printf("Age = %d", age);

  return 0;
}
 
PREVIOUS NEXT
Tagged: #Comments #C
ADD COMMENT
Topic
Name
3+3 =