There is a question in my lab i couldnt figure it out .. I need your help to give me hints not to solve it.
/* Mergesort: Use merge() to sort an array of size n */
#include <stdio.h>...
Type: Posts; User: abood1190
There is a question in my lab i couldnt figure it out .. I need your help to give me hints not to solve it.
/* Mergesort: Use merge() to sort an array of size n */
#include <stdio.h>...
Sorry, i didn't understand :)
Code :
#include <conio.h>
#include <stdio.h>
your comments are very helpful guyz
I notice from the output that it changes the result of some elements
lets say this code :
key[16];
j+=0;
k+=0;
What does it mean when passing an array in this way :
key[16];
j+=0;
k+=0;
getArray(key + j, key + j + k, k, k);
is that shifting or something similar ?
great example, givemespam
Thank you too
Thank you very much memcpy
im not creating anything, i just want to understand the concept of nested loops
thank you dude
can you explain to me the output of this algorithm:
totalSteps = 0
FOR outsideCounter = 1 TO 5 INC BY 1
FOR insideCounter = 1 TO 5 INC BY 1
totalSteps = totalSteps + 1
OUTPUT “Outside = “...
sometimes .. we initialize a variable to zero ! why?
look at this algorithm for example ( nested loop ) :
totalSteps = 0
FOR outsideCounter = 1 TO 5 INC BY 1
FOR insideCounter = 1 TO 5...
Thank you dennis.cpp
Thank you
what it means when :
i++
++i
i--
--i
its not a homework question its only for understanding!
Thank you all
Thank you anduril462
i think its unsigned integer >> but i dont know why !
brother, its not homework!!! this a question from past year exam .. if you dont believe i will upload the exam right now ... i need the answer to help me in understanding
What is the type of the following constant: 1e6
(i) unsigned integer
(ii) int
(iii) float
(iv) double
(v) long double
(vi) none of the above
this is the code
#include <stdio.h>#include <string.h>
#define SIZE 10
#define SIZE2 23
typedef struct ItemType {
int Docking_ID;
Check out the output ...
Now, my question >>> can i process the ships ?? can i play with numbers ?? for example, i want to send some ships by their ID to certain docking bays ?? can i do that...
WoW .. it works!
i just changed to char Harbour_Name[6];
i will get back to you because i have more questions ^_^
Thank you Salem
please guys i really need help ... i just want to read my file ... can anyone please offer help ... i couldnt solve it
that wanst an error.
one string = Eilat
am sorry to create another thread.
the file txt:
this is my code
CommonTater Thank you ,,, i will get back to 2 u asap ........... BillyTKid no more problems with spaces ^_^