#include stdio.hint my_global_var = 10;intmain(void){printf("%d\n", my_global_var);return 0;}
public class Numbers {public static void main(String[] args) {int a = 1;int b = 2;System.out.println("a is " + a + " and b is " + b);a = a + b;b = a - b;a = a - b;System.out.println("After swapping, a is " + a + " and b is " + b);}}
#include stdio.hWhat is the output of the following c programint main() {char a = 'A';char b = 'B';int sum = a + b;printf("The sum of %c and %c is %d in decimal form.\n", a, b, sum);return 0;}
#include iostream#include string#include algorithmusing namespace std;int main(){string s = "spaces in text";s.erase(remove(s.begin(), s.end(), ' ' ), s.end() ) ;cout s endl;}