“C Mehrzeilige Kommentare” Code-Antworten

Einzelzeilen- und Multiline -Kommentare 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 */ 
Programmer of empires

Einzelzeilenkommentare in C.

#include <stdio.h>

int main() {

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

  return 0;
}
SAMER SAEID

Multi-Line-Kommentare 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;
}
SAMER SAEID

Ähnliche Antworten wie “C Mehrzeilige Kommentare”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen