Kernel Kudos – Telegram
Kernel Kudos
1.73K subscribers
110 photos
50 videos
112 files
256 links
🪐 This channel talks about: C, Linux, Bash, and so on 🕸️

🌀 Buy Me Coffee
USDT BEP20 : 0xbc8e52af7b46461b8076085Be771F465E26A9Dfd

🐞 YouTube: https://youtube.com/@KernelKudos

Chat: { https://news.1rj.ru/str/+ftxZVA8V_ns5ZmY8 }

🔴 whoami : { @FirstTarokh }
Download Telegram
C_programming_course_day05 (1).mp4
146.9 MB
🚬 C programming course | Day 05

- Why should we use functions ?
- What are examples of functions in real-world  ?
- How to declare and define functions ?
- Implemented Strlen function in C.

داخل این ویدیو درمورد فانکشن ها صحبت کردم.
چجوری فانکشن هارو تعریف کنیم. استفاده کنیم.
درمورد فانکشن ها داخل دنیای واقعی صحبت کردم.
فانکشن strlen رو خودمون نوشتیم که ببینیم چجوری داره کار میکنه
و چجوری یک فانکشن نوشته میشه و به کار میاد

Our Telegram Channel | Kernel Kudos
🔥355👍3👏3
Kernel Kudos
C_programming_course_day05 (1).mp4
ری اکشن رو کمتر کنید 🦧🪁
👍53🐳6🥰54👾3🍓2💅2🗿2🎃1🤪1🦄1
قراره با همکارم یه اسکریپت بنویسیم که رو وب سایت ایران اینترنشنال پرسه بزنه ( از ساعت 12 شب تا 6 صبح ) ، اگه کلمه ( موشک ) یا (‌ رآکتور ) رو دید آهنگ شیطون بلای اندی پلی بشه که بفهمیم به فاک رفتیم و وقتشه پاشیم یه قندی بخوریم، به نظرتون ایده خوبیه یا نه
👏66👎4😁3👍2🫡1
Ta ghabr a a a a
Jadi
2
It had a Zilog Z-80 processor. With 1K of memory for the screen (character display) and another 1K for use by programs.
There was no room for a compiler or an assembler. So to create a program, you entered opcodes into the memory as hexadecimal numbers.
So, for example, if your program started with loading the A register with the number 3. - You might think of this as the assembly instruction:
LD A,3
But then you would need to look-up the opcode in a book (or memorise it). And type in
3E 03
I wrote a few programs on it. A version of Game of Life - And a simple side-scrolling shooter. (where the graphics were various alphabetic characters).
There was no bin file, or files of any kind, because there was no operating system to interpret such a file. There was the ability to dump a block of memory directly to a tape. And this is how programs were saved and loaded.
2
🤣24🤬3👍1😁1😱1😡1
کدوم فانکشن استاندارد، طول استرینگ مارو بهمون برمیگردوند ؟
Anonymous Quiz
23%
len
16%
strlength
48%
strlen
13%
size
Kernel Kudos
C_programming_course_day05 (1).mp4
آیا درسته function رو declare نکنم ولی زیر فانکشن main اون رو define کنم ؟
Anonymous Quiz
41%
Yep
59%
Dope

int i = 0;
while (arr[i] != '\0') {
i++;
}
return i;
Kernel Kudos
int i = 0; while (arr[i] != '\0') { i++; } return i;
فرض بر اینه که arr تعریف شده
👍6

#define RET_OK 0
#define RET_NOK 1

int add (int a, int b) {
return a + b;
}

int main() {
int s = 43;

int (*func_ptr)(int, int) = add;
int res = func_ptr(s, ++s);
printf("%i\n", res);
return RET_OK;
}
اگر میخواستم یه pointer to function داشته باشم که int برگردونه و از ورودی یدونه float و یدونه char بگیره باید چجوری مینوشتم ؟ این زیر کامنت کنید.
#notice

از این به بعد کوئیز های پیشرفته تر هم گذاشته میشه جلو جلو نسبت به مباحث،
که اونایی که بلدن بتونن بیشتر ارتباط بگیرن باهاشون،

اونایی که بلد نیستن هم توجهی بهشون نکنن،
همشون رو میگیم تو ویدیو ها.
🔥10