Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Projdi si to
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//clang 6.0.0 #include <stdio.h> int main(void) { int a = 10; int b = 20; int temp = 0; int * pa = NULL; int * pb = NULL; pa = &a; pb = &b; printf("Pred prohozenim:\n"); printf("a = %d,\t\t &a = %p,\t\t b = %d,\t &b = %p\n*pa = %d,\t pa = %p,\t\t *pb = %d,\t pb = %p. \n", a, &a, b, &b, *pa, pa, *pb, pb); printf("\t\t &pa = %p,\t\t\t\t &pb = %p\n", &pa, &pb); temp = *pa; *pa = *pb; *pb = temp; printf("Po prohozeni:\n"); printf("a = %d,\t\t &a = %p,\t\t b = %d,\t &b = %p\n*pa = %d,\t pa = %p,\t\t *pb = %d,\t pb = %p. \n", a, &a, b, &b, *pa, pa, *pb, pb); printf("\t\t &pa = %p,\t\t\t\t &pb = %p\n", &pa, &pb); return 0; }
clang
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion