The answer is C - or your third choice
Answer:
I'm better at C++, but I'm pretty sure this it:
/*C - Program to compare two strings
character by character.*/
#include<stdio.h>
int main(){
char str1[]="Hello";
char str2[]="Hello";
int len1=0, len2=0;
int i,isSame=0;
//calculate lengths
i=0;
while(str1[i++]!='\0') len1++;
i=0;
while(str2[i++]!='\0') len2++;
if(len1!=len2){
printf("Strings are not same, lengths are different\n");
return -1;
}
isSame=1;
for(i=0;i<len1;i++){
if(str1[i]!=str2[i]){
isSame=0;
break;
}
}
if(isSame)
printf("Strings are same.\n");
else
printf("Strings are not same.\n");
return 0;
}
Answer:
Python - Functions
Advertisements
A function is a block of orgaof code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree ofAdvertisement
As you already know, Python gives you many built-in functions like print(), etc. but you can also create your own functions. These functions are called user-defined functions.
Defining a Function
You can define functions to provide the required functionality. Here are simple rules to define a function in Python.
Function blocks begin with the keyword def followed by the function name and parentheses ( ( ) ).
Any input parameters or arguments should be placed within these parentheses. You can also define parameters inside these parentheses.
The first statement of a function can be an optional statement - the documentation string of the function or docstring.
The code block within every function starts with a colon (:) and is indented.
The statement return [expression] exits a function, optionally passing back an expression to the caller. A return statement with no arguments is the same as return None.
Answer:
<h3>☘ QUESTION☘</h3>
_____is used to organize and modify the properties of the current selection.
<h3>☘ ANSWER☘</h3>
(B) Property Inspector
Explanation:
✨BY#NICHOLE✨
Answer:
If its any easy question, answer it yourself.
Explanation:
:)