int main(){
char a=0b1010;
printf("%02X",a);
return 0;
}
What will be the output of the following C++ code?#include <iostream>#include <string>#include <algorithm>using namespace std;int main(){string s = "spaces in text";s.erase(remove(s.begin(), s.end(), ' ' ), s.end() ) ;cout << s << endl;}a) spacesintextb) spaces in textc) spacesd) spaces inAnswer: a
#include <stdio.h>
void m(int k)
{
printf("hi");
}
void m(double k)
{
printf("hello");
}
void main()
{
m(3);
}