public static int[] reverseArray(int[] array) {
int i = 0, j = array.length - 1;
for (i = 0; i < array.length / 2; i++, j--) {
int temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
}
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
what is string
Reference:cprogramming-bd.com/c_page2.aspx# reverse number
i am sam
abdulrahman
Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.
mano ni anda yarrr
int a,b; a=a+b; b=a-b; a=a-b; that's it simple
Yes, you can write a "hello world" program without an operating system using bare metal programming. This involves directly interfacing with the hardware of a computer system without an intermediary operating system. The program can be written to access and output text to a display device without the need for an OS.
You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.
question clarity
This is not a question.