Answer and Explanation:
In C programming language:
char fun(int*a, int*b){
printf("enter two integers: ");
scanf("%d%d",a,b);
int e;
printf("please enter a character: ");
e=getchar();
return e;
}
int main(int argc, char *argv[]) {
int d;
int f;
int g;
fun();
printf("%d%d%d", d, f, g);
}
We have declared a function fun type char above and called it in main. Note how he use the getchar function in c which reads the next available character(after the user inputs with printf()) and returns it as an integer. We then return the variable e holding the integer value as char fun() return value.
Answer:
Efectivamente, un mal manejo de los datos del cliente por parte de la empresa tendría repercusiones legales que afectarían negativamente a la compañía. Esto es así porque un eventual mal manejo de los datos personales de los clientes implicaría una filtración de dichos datos hacia el resto del público, con lo cual los datos personales y privados de cada cliente se verían expuestos en forma pública, generando así posibles daños a estos a través de la mala utilización de dicha información por parte de terceros malintencionados.
Answer:
Sometimes annoying people get bored and decide to report random things for no reason. it sucks. sometimes people accidentally press the report button when they didn't mean to, I did that once and i felt really bad. There should be a "are you sure you want to report this" button when you hit the report button. It would help.
Explanation:
Even though your variable x is large enough to hold the answer 40000000000, the constants 200000 are treated as integers, such that the multiplication is first fitted in an integer that is too small.
The solution is to use the 'LL' suffix on the constants, so that the compiler knows to treat them as long longs from the start:
long long x = 200000LL * 200000LL;
The number <span>1345294336 can be explained by ANDing 40000000000 with 0xFFFFFFFF (which is the maximum size of an unsigned long)</span>
Answer:
The function in Python, is as follows:
def maximumOccurringCharacter(mystring):
kount = [0] * 256
maxKount = -1
chr = ''
for i in mystring:
kount[ord(i)]+=1;
for i in mystring:
if maxKount < kount[ord(i)]:
maxKount = kount[ord(i)]
chr = i
return chr
Explanation:
This defines the function
def maximumOccurringCharacter(mystring):
This creates a list of 256 characters (the number of ascii characters); the list is then initialized to 0
kount = [0] * 256
This initializes the maximum count to -1
maxKount = -1
This initializes the string with maximum number of occurrence to an empty character
chr = ''
This iterates through the string and gets the occurrence of each character
for i in mystring:
kount[ord(i)]+=1;
This iterates through the string, compares the occurrence of each string with maxKount and return the character with the highest
<em> for i in mystring:
</em>
<em> if maxKount < kount[ord(i)]:
</em>
<em> maxKount = kount[ord(i)]
</em>
<em> chr = i
</em>
<em> return chr</em>