📝 Added sandbox (code sketchbook)

This commit is contained in:
z3rOR0ne 2023-04-22 00:41:54 -07:00
parent b475595f7f
commit b5daf18b1a
142 changed files with 100702 additions and 0 deletions

21
sandbox/assert.c Normal file
View file

@ -0,0 +1,21 @@
/* https://www.tutorialspoint.com/c_standard_library/c_macro_assert.htm */
#include <assert.h>
#include <stdio.h>
int main() {
int a;
char str[50];
printf("Enter an integer value: ");
scanf("%d", &a);
assert(a >= 10);
printf("Integer entered is %d\n", a);
printf("Enter string: ");
scanf("%s", str);
assert(str != NULL);
printf("String entered is: %s\n", str);
return(0);
}