1.) the art of writing or solving codes.
2.) the science of exploiting quantum mechanical properties to perform cryptographic tasks.
hope this helps :)
Page layout and header i think is correct
Answer:
<u>C program to find the sum of the series( 1/2 + 2/3 + ... + i/i+1)</u>
#include <stdio.h>
double m(int i);//function declaration
//driver function
int main() {
int i;
printf("Enter number of item in the series-\n");//Taking input from user
scanf("%d",&i);
double a= m(i);//Calling function
printf("sum=%lf",a);
return 0;
}
double m(int i)//Defining function
{
double j,k;
double sum=0;
for(j=1;j<i+1;j++)//Loop for the sum
{
k=j+1;
sum=sum+(j/k);
}
return sum;
}
<u>Output:</u>
Enter number of item in the series-5
sum=3.550000
Answer:
void doublelt(int *number)
{
*number=*number*2;
}
Explanation:
This exercise is for you to learn and understand the PASS BY POINTER syntax. The importance of this is that if you didnt use a pointer you would have to RETURN an int from the function. in that case the code would be:
int doublelt(int number)
{
number=number*2;
return number;
}
Passing by pointer manipulates the value by going inside the memory and where it resides. Without the pointer, the function would create COPIES of the argument you pass and delete them once the function ends. And you would have to use the RETURNED value only.
Answer:
Page view and outline view available in "View" Tab.
Explanation:
<u>Page View:</u>
<u>There are four types of page views available in word.</u>
<u>1. Normal: </u>(Useful when we need to write more text in word)
<u>2. Web layout: </u>(Use only when we are creating a website)
<u>3. Print layout: </u>(It is used to show the left, right, top and bottom margin for printing)
<u>4. Outline View:</u> (Used to make outline of whole document)