Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Základy UDP
#include <stdio.h> int main() { int X; X = 10; int Y = 12; printf("Velikost X = %d\n\n", X); printf("Velikost Y = %d\n", Y); int a; long b; long long c; char d; short e; printf("%zu\n", sizeof(a)); printf("%zu\n", sizeof(b)); printf("%zu\n", sizeof(c)); printf("%zu\n", sizeof(d)); printf("%zu\n", sizeof(e)); int AB; printf("Zadej velikost AB: "); scanf("%d", &AB); printf("\nVelikost AB = %d\n", AB); char znak = 'A'; char znaky[] = "Ahoj"; //string printf("Znak = %c\n", znak); printf("Znaky = %s\n", znaky); return 0; } /* - v nazvu promennych se odlisuji velka a mala pismena - hodnoty konstanty se nadaji dale menit! printf("text"); printf("%zu\n", sizeof(a)); velikost promenne "a" v bytech scanf(); %zu - zobrazi velikost promenne \n - skok na novy radek &x - vlozi hodnotu do pameti promenne "x" int ... cele cislo (2B) char ... znak i retezec znaku- napriklad / % (1B) double ... desetinne cislo nebo zaporne cislo float ... -||- (string) ... retezec znaku - napriklad slova bool ... 0 nebo 1, true nebo false long int = long long long int unsigned - ...i do zapornych hodnot */
run
|
edit
|
history
|
help
0
struct
Herout (67) - 8
Does fgets() read past a leading newline?
Herout (67) - 12
C
lab7
lab7_OOP 0.3 alha
Herout (67) - 15
Funciones: MandelBrot
Code