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
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
Kernel Kudos
what is the value of res ?
87
88
👍3👎2
IMG_20240806_120559_537.png
296.6 KB
https://news.1rj.ru/str/KernelKudos/500

این مطلب در جهت موضوع این پست صدق می‌کنه،
بخونید بدرد میخوره
درموردش وویس می‌فرستم
3
سرعت پایین apt همیشه برای خیلیامون آزاردهنده بوده.

اسکریپتی هستش به نام apt-fast که میاد و با استفاده از aria2c سرعت دانلود apt رو افزایش میده.

🔗 https://github.com/ilikenwf/apt-fast

توصیه می‌کنم اگر دبیان، یا توزیعی دارید که مخازن شدیداً کندی‌داره، از apt-fast برای دانلود و نصب بسته‌هاتون استفاده کنید.

@SohrabContents
👍9🔥21
فردا فیلم بعدی رکورد میشه و آپلود میشه 🧬🪁
122😍2