SOME NOTES ON CONSTANTS
const int x = 34;
// you cannot change the value of x.
// Cannot modify what p points to
// But we can modify p itself
const int* p = &x;
p++; // This is fine ✅
*p = 34; // BUG ❌
// These two lines are the same in C:
const int* ptr;
int const* ptr;
// :))
int* const other = &x;
// This way we can change what the pointer points to, But we cannot change the pointer itself:
*other = 34; // Valid! ✅
other++; // BUG ❌
👍3❤1
Cafè Linux
const int a = 20; int *ptr = &a; *ptr = 40;
What is the result ?
Anonymous Quiz
44%
It will crash 100%
56%
Undefined Behaviour (It may change the value of 'a')
❤2
Cafè Linux
What is the result ?
جواب این برگ های شمارو خواهد ریخت،
البته اونایی که زدن جواب رو فهمیدن طبیعتا.
حالا توضیح میدم درموردش 🌞
البته اونایی که زدن جواب رو فهمیدن طبیعتا.
حالا توضیح میدم درموردش 🌞
Cafè Linux
https://youtu.be/bsejZACLN7M
An intro to what strings are and how they work in C.
Three different ways to define a String in C.
How to modify a string, and how pointer strings are read-only...
#notice @tCafeLinux
❤4🤝1
دوستان جدید همه ویدیوها تو یوتیوب هست.
در های پیوی من هم به روی همه بازه.
و اینکه ویدیو ها کوتاه کوتاه رکورد میشه که خسته نشید و اینکه با سرعت بالاتر بشه ویدیو رکورد کرد.
تشکر از همه
5❤5💯2
https://news.1rj.ru/str/+fVJ4fVFeyhI0OWY0
⭐ گروه کانال، دوست داشتید بیاید برای ارتباط راحت تر و بحث درمورد مباحث و اینجور چیزها.
⭐ گروه کانال، دوست داشتید بیاید برای ارتباط راحت تر و بحث درمورد مباحث و اینجور چیزها.
Telegram
Cafè Linux Chat
@TCafeLinux Chatroom.
whoami: @firstTarokh -
🕷️
whoami: @firstTarokh -
🕷️
❤2
Cafè Linux
https://youtu.be/66kafRjkKnM
In this video we talked about:
- strlen, sizeof, strcpy
- pointers on strings.
And so on
اینجا درمورد فانکشن های sizeof, strlen, strcpy
حرف زدیم و مثال زدیم.
درمورد این حرف زدیم که چجوری میشه با sizeof طول array رو پیدا کرد با هر دیتاتایپی
درمورد ارتباط پوینترها با استرینگ ها بیشتر حرف زدیم.
@tCafeLinux #NOTICE
3
Cafè Linux
Voice message
سلام همگی، این وویس درمورد دوره C و ویدیوها
و اینکه ممنون از ONION بابت استارز ⭐
5❤7
Cafè Linux
https://youtu.be/66kafRjkKnM
حتی اگه 20 دقیقه جوک تعریف میکردم بیشتر از دو تا ری اکشن نیاز داشت -.-
#ادمین_ناامید 🩼
😢9💔3🤣1😭1
This media is not supported in your browser
VIEW IN TELEGRAM
Torvalds on #Valve and windows.
@tCafeLinux