Muhammad Zahalqa retweeted
כל הפרטים על הלינץ המזעזע בפתח תקווה teapawt.net/i/broadcasts/1jMKgLRpO…
Muhammad Zahalqa retweeted
Save the date: CPP Game Show episode #2 is coming live on June 23rd, 11am EDT: linkedin.com/events/cppgames…
Three great contestants are going to beat again a C++ challenge in 25 minutes!
@thewholedaisy @AmirKirsh @dascandy42
Don't miss it, mark your calendars!
#cpp #cplusplus
Muhammad Zahalqa retweeted
Direct (ungated) link to watch the show:
bit.ly/3wLiL1f
Challenge:
bit.ly/3Dr8QPS
Solutions =>
Vittorio: vittorio.godbolt.org/z/fEcGj…
Dima: dima.godbolt.org/z/qYvx6hKMx
Kilian: kilian.godbolt.org/z/j19WzoK…
Muhammad Zahalqa retweeted
#154 Given the following in C++:
int main() {
int x;
int y;
auto f =[&x,&y]() {return x + y;};
auto [x1, y1] = f; // Can we decompose the lambda captures 🤔
}
Without checking?
A. Yes
B. No
C. Depends on standard version
D. Show results
#Cplusplus
#Cpppolls
8%A
57%B
9%C
26%D
630 votes • Final results Muhammad Zahalqa retweeted
Muhammad Zahalqa wraps up #corecpp2021 with some synchronization wrappers
@corecpp
Muhammad Zahalqa retweeted
If you retweet (or like) the original tweet, I will CC you when I post the answer.
Muhammad Zahalqa retweeted
they forgot to turn up shadow quality at the capitol
a little unprofessional imo
Muhammad Zahalqa retweeted
Replying to @NihilistGhost
Read the article, it's all there and it's free to download! I've discovered at least 6 different manuscripts that make the distinction in a variety of different styles.
Muhammad Zahalqa retweeted
Video of @herbsutter's and my interview with @cppchat is up. Static if!... Static if!... Static if!... youtube.com/watch?v=Up1tZODy…
Muhammad Zahalqa retweeted
Given the following in C++:
struct B {
int x:4;
};
void f(int &x);
void b() {
B b1{1};
auto &[y] = b1; // A
y = 5; // B
f(y); // C
}
Without checking, the code is ill-formed (requires a diagnostic) at point:
#CppPolls
#Cplusplus
42%A
15%B
24%C
19%All are well-formed
161 votes • Final results Muhammad Zahalqa retweeted
Given this C++ code, assume LP64
template <size_t N>
void f(int i[2],char c[2],int (&)[N]){
printf("%zu,%zu,%zu",sizeof(c),sizeof(i),N);
}
int main(){
char c[2];
int i[2];
printf("%zu,%zu,",sizeof(c),sizeof(i));
f(i,c,i);
}
What is the output?
#Cplusplus
#Cpppolls
8%8,8,8,8,2
8%2,2,2,2,2
74%2,8,8,8,2
11%2,2,8,8,2
76 votes • Final results Muhammad Zahalqa retweeted
I often recommend cppreference.com when you need reference material.
Muhammad Zahalqa retweeted
Given the following in C and C++
void foo(int i) {
const int max=10;
switch(i) {
case max:
break;
}
}
This is, without checking:
A. Valid C and C++
B. Valid C
C. Valid C++
D. Neither Valid C or C++
#Cplusplus
#Cpppolls
#Programming
30%A
13%B
33%C
25%D
326 votes • Final results Muhammad Zahalqa retweeted
ברוח החגים , אחים ואחיות יהודים וערבים בבי״ח העמק בעפולה( דווקא שם) משמחים את החולים במחלקת הדיאליזה עם שיר ערבי מפורסם "דיחייה".👏🏻👏🏻
אזהרת צפייה: לא מומלץ לגזענים (ומאוד מומלץ לכל היתר)
#אפשרגםאחרת
Muhammad Zahalqa retweeted
First lecture in Category Theory for Programmers. Just motivation and philosophy. No math or programming needed. youtu.be/I8LbkfSSR58 – at Seattle, WA
















