2025 Youtube video serisi için eski kodlar silindi

This commit is contained in:
Mert Gör 🇹🇷 2025-01-07 16:04:55 +03:00
parent d2cf1c4028
commit 7decd2265b
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
29 changed files with 2 additions and 16643 deletions

View File

@ -1,5 +1,7 @@
2025-01-07 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/CSD-C-Basic-Book/C.pdf: 2025 Youtube serisi Türkçe içerik başladı
* c-basic/single_quote.c (main): İki tırnak karakterine ilişkin karakter sabiti '\”' ile belirtilir. Fakat tek tırnak içerisinde iki tırnak soruna yol açmaz.
Ancak iki tırnak içerisinde iki tırnak soruna yol açar. Örneğin: page 34

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
#include <stdio.h>
int main()
{
double a,b,c;
printf("enter a number \n");
scanf("%lf", &a);
printf("enter b number \n");
scanf("%lf", &b);
c = a + b;
printf("your result and also c number is : %f\n", c);
return 0;
}

View File

@ -1,11 +0,0 @@
#include <stdio.h>
int main()
{
printf("c:\temp\a.dat\n");
printf("c:\\temp\\a.dat\n");
return 0;
}

View File

@ -1,18 +0,0 @@
#include <stdio.h>
int main()
{
float f;
double d;
printf("enter a float number: \n");
scanf("%f", &f);
printf("enter a double number: \n");
scanf("%lf", &d);
printf("f = %f, d = %f \n", f , d);
return 0;
}

View File

@ -1,18 +0,0 @@
#include <stdio.h>
int a;
void foo()
{
a = 10;
}
int main ()
{
a = 20;
printf("%d\n", a); // a = 20;
foo();
printf("%d\n", a); // a = 10
return 0;
}

View File

@ -1,12 +0,0 @@
#include <stdio.h>
int foo()
{
printf("I am foo\n");
}
int main()
{
foo();
return 0;
}

View File

@ -1,21 +0,0 @@
#include <stdio.h>
int a;
void foo()
{
int a;
a = 10;
}
int main()
{
a = 20;
printf("%d\n", a);
foo();
printf("%d\n", a);
return 0;
}

View File

@ -1,19 +0,0 @@
#include <stdio.h>
int main()
{
int a;
a = 10;
{
int a;
a = 20;
printf("%d\n", a); // 20
}
printf("%d\n", a); // 10
return 0;
}

View File

@ -1,7 +0,0 @@
#include <stdio.h>
int main()
{
printf("Hell C World \n");
return 0;
}

View File

@ -1,12 +0,0 @@
#include <stdio.h>
int main()
{
int a, b;
printf("Enter a number: \n");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}

View File

@ -1,19 +0,0 @@
#include <stdio.h>
int main()
{
int a;
{
int b;
b = 20;
a = 10;
printf("a = %d, b = %d\n", a, b);
}
printf("a = %d\n", a); // correct
// printf("b = %d\n", b); // incorrect/error
}

View File

@ -1,13 +0,0 @@
#include <stdio.h>
#include <math.h>
int main()
{
double result;
result = log10(1000);
printf("%f\n", result);
return 0;
}

View File

@ -1,17 +0,0 @@
#include <stdio.h>
void foo(int a, int b)
{
printf("a = %d, b = %d\n", a, b);
}
int main()
{
int x = 10, y = 20;
foo(x,y);
foo(x + 10, y + 10);
foo(100, 200);
return 0;
}

View File

@ -1,23 +0,0 @@
#include <stdio.h>
int add(int a, int b)
{
return a + b;
}
int mul(int a, int b)
{
return a * b;
}
int main()
{
int result;
result = add(10, 20);
printf("add result is %d\n", result);
result = mul(10,20);
printf("multiply result is %d\n", result);
return 0;
}

View File

@ -1,12 +0,0 @@
#include <stdio.h>
#include <math.h>
int main()
{
double result;
result = pow(3, 4);
printf("%f\n", result);
return 0;
}

View File

@ -1,12 +0,0 @@
#include <stdio.h>
int main()
{
int a = 10, b = 20;
printf("a = %d, b= %d\n", a, b);
printf("a = %d, b = %d\n", b, a);
printf("%d%d", a, b);
return 0;
}

View File

@ -1,17 +0,0 @@
/**
Tek tırnak karakterinin karakter sabiti ''' biçiminde yazılamaz. '\'' biçiminde belirtilir. Fakat çift tırnak içerisinde tek
tırnak soruna yol açmaz. Örneğin:
**/
#include <stdio.h>
int main()
{
char ch = '\'';
printf("%c\n", ch);
printf("Turkiye'nin baskenti Ankara'dir\n");/* geçerli */
printf("Turkiye\'nin baskenti Ankara\'dir\n"); /* geçerli */
return 0;
}

View File

@ -1,8 +0,0 @@
#include <stdio.h>
int main()
{
printf("I'm main\n");
return 0; // with or without same effect
}

View File

@ -1,16 +0,0 @@
#include <stdio.h>
int foo()
{
printf("I am foo\n");
return 100;
printf("I am test\n"); // unreachable code
}
int main()
{
int result;
result = foo() * 2;
printf("result = %d\n", result);
}

View File

@ -1,10 +0,0 @@
#include <stdio.h>
int main()
{
int a;
printf("enter a number : \n");
scanf("%d,", &a);
printf("your number is : %d\n", a);
}

View File

@ -1,14 +0,0 @@
#include <stdio.h>
int main()
{
int a, b;
printf("enter 'a' number : \n");
scanf("%d,", &a);
printf("enter 'b' number : \n");
scanf("%d, ", &b);
printf("your numbers a = %d , b = %d\n", a, b);
return 0;
}

View File

@ -1,14 +0,0 @@
#include <stdio.h>
void foo()
{
int a;
int a;
}
int main()
{
int a;
return 0;
}

View File

@ -1,24 +0,0 @@
#include <stdio.h>
#include <math.h>
int main()
{
double result;
result = sin(3.141592653589793238462643 / 6);
printf("%f\n", result);
result = cos(3.141592653589793238462643 / 3);
printf("%f\n", result);
result = sin(3.141592653589793238462643 / 4) / cos(3.141592653589793238462643 / 4);
printf("%f\n", result);
result = tan(3.141592653589793238462643 / 2);
printf("%f\n", result);
result = tan(3.141592653589793238462643 / 4);
printf("%f\n", result);
return 0;
}

View File

@ -1,13 +0,0 @@
#include <stdio.h>
int main()
{
char ch1 = '\"';
char ch2 = '"';
printf("%c, %c\n", ch1, ch2);
printf("\"Ankara\"\n");
return 0;
}

View File

@ -1,16 +0,0 @@
#include <stdio.h>
#include <math.h>
int main()
{
double val;
double result;
printf("Enter a number");
scanf("%lf", &val);
result = sqrt(val);
printf("%f\n", result);
return 0;
}

View File

@ -1,7 +0,0 @@
#include <stdio.h>
int main()
{
printf("ali\tveli\nselami\tayse\n");
return 0;
}

View File

View File

@ -1,15 +0,0 @@
#include <stdio.h>
void foo()
{
printf("I'm foo\n");
}
int main()
{
printf("I'm main\n");
foo();
return 0;
}