Largest radio jet ever seen provides a glimpse of the early universe - Earth.com
https://www.earth.com/news/largest-radio-jet-ever-seen-provides-a-glimpse-of-the-young-universe/
https://www.earth.com/news/largest-radio-jet-ever-seen-provides-a-glimpse-of-the-young-universe/
Earth.com
Largest radio jet ever seen provides a glimpse of the early universe - Earth.com
By revealing a massive radio jet in the early universe, J1601+3102 offers a rare snapshot of early quasar activity.
❤1
👍2
A Programming Language For Building NES Games
https://hackaday.com/2025/02/08/a-programming-language-for-building-nes-games/
https://hackaday.com/2025/02/08/a-programming-language-for-building-nes-games/
Hackaday
A Programming Language For Building NES Games
Generally speaking, writing your own games for retro consoles starts with C code. You’ll need to feed that through a console-specific tool-chain, and there’s certainly going to be some …
❤3
Question 1: Memory Management
#include <stdio.h>
#include <stdlib.h>
int main() {
int *ptr = (int *)malloc(sizeof(int));
*ptr = 10;
int *new_ptr = ptr;
free(ptr);
*new_ptr = 20;
printf("%d", *new_ptr);
return 0;
}
Question 2: Function Pointers
#include <stdio.h>
void func1() { printf("1"); }
void func2() { printf("2"); }
int main() {
void (*arr[2])();
arr[0] = func1;
arr[1] = func2;
for(int i = 1; i >= 0; i--)
arr[i]();
return 0;
}
Question 3: Preprocessor
#include <stdio.h>
#define SQUARE(x) x * x
#define DOUBLE(x) (x + x)
int main() {
int x = 5;
printf("%d", SQUARE(DOUBLE(x)));
return 0;
}
👍1
Question 4: Pointer Arithmetic
#include <stdio.h>
int main() {
int arr[] = {1, 2, 3, 4, 5};
int *p = arr + 3;
int *q = arr + 1;
printf("%d", p - q);
return 0;
}
👍1
Which memory segment stores global and static variables that are initialized with non-zero values?
Anonymous Quiz
29%
BSS Segment
27%
Data Segment
31%
Stack Segment
13%
Heap Segment
Which storage class in C has file scope and default initial value of zero?
Anonymous Quiz
14%
auto
30%
register
44%
static
12%
extern
Which preprocessor directive is used to prevent multiple inclusions of a header file?
Anonymous Quiz
11%
26%
30%
33%
A and B
Kernel Kudos
What is the answer
||| سر جواب این یکم شک و بحث هست،
روی دو تا سیستم دو تا جواب متفاوت |||
ولی اگه جواب ۱۰۰ بود هم درست در نظر بگیرید 👍
روی دو تا سیستم دو تا جواب متفاوت |||
ولی اگه جواب ۱۰۰ بود هم درست در نظر بگیرید 👍
👍4🌚2👎1
Kernel Kudos
Photo
این نمودار درواقع این رو نشون میده که وقتی شما دارید کار میکنید و یه نفر یهو میاد باهاتون صحبت میکنه چقدر طول میکشه که دوباره شما برگردید به حالت عادی و بتونید ادامه کار رو انجام بدید 🪼
(صرفا توی کدنویسی)
(صرفا توی کدنویسی)
👍20
«کد مثل جوکه، اگه مجبور بشی توضیحش بدی، دیگه خوب نیست.»
- کوری هاوس، توسعه دهنده
😁30❤5⚡3👍1