Kernel Kudos
ویدیو بعدی رکورد شده، تا شب آپلود میکنم
البته یادم افتاد که فونت رو بزرگ نکردم باید دوباره رکورد کنم :/
ولی تا شب آپلود میشه
ولی تا شب آپلود میشه
😭3👌2❤1🤣1😐1
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
🔥35❤5👍3👏3
قراره با همکارم یه اسکریپت بنویسیم که رو وب سایت ایران اینترنشنال پرسه بزنه ( از ساعت 12 شب تا 6 صبح ) ، اگه کلمه ( موشک ) یا ( رآکتور ) رو دید آهنگ شیطون بلای اندی پلی بشه که بفهمیم به فاک رفتیم و وقتشه پاشیم یه قندی بخوریم، به نظرتون ایده خوبیه یا نه
👏66👎4😁3👍2🫡1
Kernel Kudos
قراره با همکارم یه اسکریپت بنویسیم که رو وب سایت ایران اینترنشنال پرسه بزنه ( از ساعت 12 شب تا 6 صبح ) ، اگه کلمه ( موشک ) یا ( رآکتور ) رو دید آهنگ شیطون بلای اندی پلی بشه که بفهمیم به فاک رفتیم و وقتشه پاشیم یه قندی بخوریم، به نظرتون ایده خوبیه یا نه
پیشنهاد همکارم آهنگ سوسن خانم بود ولی من فکر میکردم اندی گزینه بهتریه
😁6👎1
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
Forwarded from محتوای آزاد سهراب
This media is not supported in your browser
VIEW IN TELEGRAM
🤣8😁5🥰1
Kernel Kudos
C_programming_course_day05 (1).mp4
How do we declare a function in C
Anonymous Quiz
12%
func echo(str);
65%
int echo(char[]);
6%
def echo(args);
17%
void echo = new Function(params);
کدوم فانکشن استاندارد، طول استرینگ مارو بهمون برمیگردوند ؟
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
Kernel Kudos
C_programming_course_day05 (1).mp4
چجوری به کامپایلر بگم که این فانکشن قرار نیست return value داشته باشه ؟
Anonymous Quiz
87%
فانکشن رو void تعریف کن
3%
فانکشن رو بدون هیچ return type خاصی تعریف کن
7%
فقط کافیه return نکنی اخر فانکشن
3%
موارد دیگه
#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;
}
Kernel Kudos
#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; }
what is this code doing ?
Anonymous Quiz
16%
pointing to a pointer that points to a function
13%
the code crashes
66%
pointer to a function that sums two nums
5%
non of above
🤯1