What do you want to save?
Add Code snippet
New code examples
-
C 2021-10-22 11:32:07
convert string to uppercase in c
For those of you who want to uppercase a string and store it in a variable (that was what I was looking for when I read these answers). #include <stdio.h> //<-- You need this to use printf. #include <string.h> //<-- You need this to u... Add solution -
C++ 2021-10-22 09:34:09
call by reference c++ example
//call by reference example c++ #include <iostream> using namespace std; void swap(int& x, int& y) { cout << x << " " << y << endl; int temp = x; x = y; y = temp; cout << x << " "... Add solution -
Java 2021-10-19 09:19:11
reverse a number using mathematical operations in java
//continue to loop until a value is equal to 0 public class ReverseNum{ public static void main(String[] args { int a = 543; int reverse = 0; while(a!=0){ //itera the process int digit = a%10; //isolate the last digit number revers... Add solution -
Java 2021-10-19 07:02:06
how to print to the console in java
//This is for printing in columns System.out.println("Hello World!"); //This is for printing in rows System.out.print("Hello World"); //When im using the double slash its to comment, also remember that you dont need to type Hello Wor... Add solution -
C 2021-10-18 07:01:09
print variable adress c
int a = 12; printf("adress = %p", &a); Add solution
Best helpers
Ranking is empty