Skip to content
Snippets Groups Projects
Commit 5bf09f9c authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Beispielprogramme 12.11.2020

parent 5ce6823e
Branches 2024ss
No related tags found
No related merge requests found
Showing
with 206 additions and 0 deletions
.file "hello-1.c"
.text
.section .rodata
.LC0:
.string "Hello, world!"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
leaq .LC0(%rip), %rdi
call puts@PLT
movl $0, %eax
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Debian 8.3.0-6) 8.3.0"
.section .note.GNU-stack,"",@progbits
.file "hello-1.c"
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Hello, world!"
.text
.globl main
.type main, @function
main:
.LFB11:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
leaq .LC0(%rip), %rdi
call puts@PLT
movl $0, %eax
addq $8, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE11:
.size main, .-main
.ident "GCC: (Debian 8.3.0-6) 8.3.0"
.section .note.GNU-stack,"",@progbits
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
"Hello, world!\n";
return 0;
}
#include <stdio.h>
int main (void)
{
double pi;
pi = 3,1415926535897932384626433;
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
double pi;
pi = 3,14159265;
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
double pi;
pi = 3.14159265;
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
for (int i = 0; i < 10; printf ("%d\n", i), i++);
return 0;
}
#include <stdio.h>
int main (void)
{
double pi = 3,14159265;
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
double pi = 3, e = 14159265;
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
double pi = (3,14159265);
printf ("pi = %lf\n", pi);
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
42;
return 0;
}
#include <stdio.h>
int main (void)
{
int whatever = printf ("Hello, world!\n");
printf ("Zurückgegebener Wert: %d\n", whatever);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = a = 12;
c = b++;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = a = 12;
c = ++b;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = a += 12;
c = ++b;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = a, 42;
c = ++b;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = (a, 42);
c = ++b;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
#include <stdio.h>
int main (void)
{
int a, b, c;
a = 10;
b = (a = 7, 42);
c = ++b;
printf ("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment