Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Exploiting uninitialized variable
//Exploiting uninitialized variable 2 #include <stdio.h> unsigned uninitialized( void ) { unsigned var; return var; } unsigned square(unsigned arg){ unsigned result=arg*arg; return result; } int main( void ) { unsigned to_square; printf("UNINITIALIZED = %u\n", uninitialized()); while(scanf("%u", &to_square)!=EOF){ printf("%u * %u = %u\n", to_square, to_square, square(to_square)); printf("UNITNITIALIZED = %u\n", uninitialized()); } }
run
|
edit
|
history
|
help
1
detonadisimo
C dynamic string implementation using preprocessor
X=2
e
problemapi2
C_141203_CTYPE
18BCE2182 ASSESS_1 Q2-2
Lab 11 v1.0
A_141124_arrayMaxMin01
C_141204_ConcatenarCadenas