Похожие чаты

Is something wrong with the c language? i dont understand

whats wrong here :-/

6 ответов

5 просмотров

There's nothing wrong here. What do you expect the code to do

skalpasi- Автор вопроса

my bad, i forgot to explain what im trying. actually i want to add all eleements of a in b in reverse order

skalpasi
my bad, i forgot to explain what im trying. actual...

Okay. Then this code does that. The output is correct. The elements of a[] are in reverse order in b[]

skalpasi- Автор вопроса

they are not?

skalpasi
they are not?

They are. You aren't "adding" anything but storing the values of the array a, into b in reverse order.

skalpasi
my bad, i forgot to explain what im trying. actual...

And what do you mean add all elements of a in b? if you add all elements of a, it becomes just one element. And addition is commutative, order doesn't matter.

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
We heading to 1.1$ 🤔?
CryptoBo$$
35
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
45
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
кто-то пользуется компонентами rx ? как их лучше ставить, через OPM? (lazarus)
Iluha Companets
15
But what if some projects may have no sense financially but important from public relations point of view and overall adoption (which leads to more investors so more income). ...
Katu
3
Поставил генту, установил кланг, когда запускаю его не давая ему файла он выводит странную ошибку, в чем может быть дело? max@gentoo ~> clang /usr/bin/x86_64-pc-linux-gnu-ld.b...
молодой базз
8
Здравствуйте товарищи! решил всё таки поставить линукс. Порядок создание разделов /boot/efi 200МиБ; /boot 1000; подсистему / 80000; swap 8Гб Будет норм?
K2
19
How Will #Monero Be Attacked? First of all I want to tell you that this is not teaching the network attackers, the central regulators. They already know how to attack the net...
Li₿ΞʁLiøη
3
подскажите пожалуйста, как мне освободить результат записанный в переменную result? в чем проблема подскажите если МОЖЕТЕ?
Михаил Helper
28
Карта сайта