Answer:
void swapints(int *j,int *k)//Function definition.
{
*j=*j+*k-(*k=*j); //value swapping.
}
swapints(&j,&k);//call the function.
Explanation:
- The above function definition takes the address of j and k variables which is stored on the pointer variable j and k.
- Then the pointer variable uses the j and k value for the above expression, and the user does not need to return the value of j and k.
- But when the user prints the value of the j and k variable, then he gets the swapping value of the j and k variable.
- The user needs to know that the "int j" is a normal variable, but "int *j" is a pointer variable that is used to take the address of j variable.
It tells u what kind of file it is and also if it were to have two extensions it would interfere and cause it not to work
Answer:
Program Start:
Declare Variables: Celsius and Fahrenheit as float
Input Celsius
Fahrenheit = (Celsius * 9/5) + 32
Print Celsius
Print Fahrenheit
End Program
Explanation:
Pseudo codes are false codes and are used to mimic actual programs.
So, the interpretation of the above code is as follows:
This line indicates the start of the program
Program Start:
The variables are declared, here
Declare Variables: Celsius and Fahrenheit as float
This line gets input for degree Celsius
Input Celsius
This line converts degree Celsius to Fahrenheit
Fahrenheit = (Celsius * 9/5) + 32
The next two lines print the degree Celsius and the equivalent degree Fahrenheit
Print Celsius
Print Fahrenheit
This indicates end of program
End Program