Answer:
X = int(input("Age = ")
if (X >= 18):
print('Valid Voter')
Else:
return 0
Try it and let me know. :)
The result of sending the string above into a variable that has allocated space for 8 bytes is that there will be Buffer Overflow Attacks.
<h3>What occurs when a string of data sent to buffer is large?</h3>
A buffer overflow is also known as buffer overrun. This is known to be a process that occurs when or if the size of data is known to be more than the storage capacity of any kind of memory buffer.
Note that due to the overload, the program that is trying to write the data to the buffer will therefore overwrites to the adjacent memory locations.
Learn more about string from
brainly.com/question/26427527
What do you mean? <span>Makes it possible to treat dates as other numbers</span>
Answer:
#include<stdio.h>
#include<string.h>
int main(){
char str[20];
int i=0;
printf("Enter a name: ");
gets(str);
printf("%c",*str);
while(str[i]!='\0'){
if(str[i]==' '){
i++;
printf("%c",*(str+i));
}
i++;
}
return 0;
}
Explanation: