Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int main() {
int x = 10;
int *ptr = &x;
printf("Adresse von x: %p, Wert von x: %d\n", (void*)&x, x);
printf("Adresse von ptr: %p, Wert von ptr: %p\n", (void*)&ptr, (void*)ptr);
return 0;
using System;
class Program {
static void Main() {
Console.WriteLine("Hallo, Welt!");
}
}
#include <iostream>
int main() {
std::cout << "Hallo, Welt!" << std::endl;
return 0;
}
@BMU-Verlag
BMU-Verlag / c-vs-csharp-cplus
Created October 10, 2023 15:37
c-vs-csharp-cplus
#include <stdio.h>
int main() {
printf("Hallo, Welt!\n");
return 0;
}
git commit -m "Added new file"
git clone <repository-url>
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-counter',
templateUrl: './counter.component.html',
styleUrls: ['./counter.component.scss']
})
export class CounterComponent implements OnInit {