Answer:
void printBackwards(char s[])
{
int n=strlen(s)-1;//finding the last index of the string..
for(int i=n;i>=0;i--)//loop to print the string backwards..
{
printf("%c",s[i]);//printing the character of the string..
}
}
Output:-
abcdefg
gfedcba
Explanation:
I have used strlen function that will be used after including the string.h header file.It returns the length of the string.After finding the last index I have iterated over the c string in reverse order and printing the character of the string one by one.
In decimal it is:
0*8^0 + 7*8^1 + 4*8^2 + 2*8^3 = 1336
Basically adding up the place values.
You can easily organize your work space. also you may have more resources. hope this helps
I'd say MSconfig, you can use that and view the 'processes' tab, but it will make you open up the task manager.
Answer:
The right answer is option 4: 2
Explanation:
Lists are used in Python to store elements of same or different data types.
Different functions are used in Python on List. One of them is count.
Count is used to count how many times a specific value occurs in a list.
The syntax for count is:
listname.count(value)
In the given code,
The output will be 2
Hence,
The right answer is option 4: 2