Search
 
SCRIPT & CODE EXAMPLE
 

C

single line and multiline comments in c

plz subscribe to my you tube channel -->
https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A


// this is a comment in c# .using two frontslash you can define a comment in c# language



/*this is a multiline comment in c#
we define multiline xomment by adding fron slash and a star and wen we end the 
multiline comment then again we write fron slashand a star but this time star
is
at the front */ 
Comment

multi line comment c

/* this is how
   you comment multiple lines
   in c
   */
Comment

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;
}
Comment

Single-line Comments in C

#include <stdio.h>

int main() {

  // create integer variable    
  int age = 25; 
 
  // print the age variable
  printf("Age: %d", age);

  return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how to make two arrays equal in c 
C :: oracle trunc 
C :: C Input and Output Array Elements 
C :: static variable c 
C :: node in c 
C :: boolean operators in c 
C :: Example of read and write project in c 
C :: c malloc 
C :: short print variable in c 
C :: ansi c read write bmp 
C :: gcc compiler for windows 10 
C :: entity framework core discard changes 
C :: cocktail sort in c 
C :: retoure a la ligne C 
C :: create a gtk window 
C :: how to link flexslider 
C :: abs() for floting point in C 
C :: VLOOKUP CHECK #N/A 
C :: online c compiler for graphics 
C :: Writing tests for API requests 
C :: Implement N-Queen Problem 
C :: bullseye lxc network problem 
C :: what to do after autoencoder training 
C :: golang inline function definition 
C :: print octal in c 
C :: c addition 
C :: c declare float 
C :: free array in c 
Dart :: flutter get width of screen 
Dart :: flutter clear navigation stack 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =