Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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
Csharp :: c# ienumerable to list 
Csharp :: datetime check null c# 
Csharp :: c# empty list 
Csharp :: c# not 
Csharp :: The entity type has multiple properties with the [Key] attribute. 
Csharp :: c# create console for winform 
Csharp :: c# delegate 
Csharp :: declare dictionary c# 
Csharp :: qtablewidget add image 
Csharp :: c# convert string array to int array 
Csharp :: c# get total milliseconds from datetime 
Csharp :: mfind how many digits a number has c# 
Csharp :: get all components of type unity 
Csharp :: multiplication of long numbers 
Csharp :: trim c# 
Csharp :: get array from column datatable c# 
Csharp :: c# remove all punctuation from string 
Csharp :: how to chceck for a tag in a trigger enter 2d unity 
Csharp :: Unity gameobject visible to specific camera 
Csharp :: how to stop a form c# 
Csharp :: linq when name then orderby 
Csharp :: c# loops 
Csharp :: unity yield return 
Csharp :: string to char array c# 
Csharp :: make 2D object move at constant speed unity 
Csharp :: System.Drawing get from url 
Csharp :: c# system.text.json deserialize 
Csharp :: get enum value c# 
Csharp :: c# show list in richtextbox 
Csharp :: check if mouse is in frame unity 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =