Answer:
- \' is used to escape a single quote in a string enclosed in single quotes like;
my_string = 'this is John\'s ball'.
- \n is used to jump to a new line, Eg;
my_string = "Johns is a good boy\nbut he hates going to school."
the next set of the string after the '\n' character is displayed on the next line.
- \t is used to add a tab space to a string.
my_string = 'Jane is \thungry'
the character adds four character spaces before the word 'hungry'.
- \r adds a carriage return (or enter in keyboards) to start a new block paragraph in a string.
my_string = "Johns is a good boy\rbut he hates going to school."
Explanation:
Escape sequences in programming are used to format strings or output syntax of a program. They always begin with the backslash. Examples of escape sequence are " \' ", "\n", "\t", "\r", etc.
Answer:
The program to calculate factor can be given as:
Program:
#include <stdio.h> //include header file
int main() //defining main function
{
int a,i; //defining integer variable
printf("Enter any number: "); //print message
scanf("%d",&a); //input value from user end
for(i=1;i<=a;i++) //loop for calculate factor values
{
if(a%i==0) //define condition for factor
{
printf("%d\n",i); //print values
}
}
return 0;
}
Output:
Enter any number: 15
1
3
5
15
Explanation:
In the above C language program the header file is include that provide the use of basic function, in the next line the main method is defined, inside this method two integer variable "a and i" is defined in which variable a is used to take value from user end and variable i is used in loop and conditional statement.
- In the next step, for loop is declare, that start from 1 and end with value of variable a, inside a loop, if block is used that checks (a%i==0), in this if variable i value modeler value equal to 0.
- The loop will use the print function that prints variable "i" element in a new line, which is the factor the values.
Explanation:
million landlines. During this same time the number of mobile phone lines that have been subscribed to has ...
Characteristics
Answer:
C.<em> improve data quality and reduce redundancies, reduce increased and staggering storage management costs</em>
<em></em>
Explanation:
Excess data retention can lead to retention of redundant and irrelevant data, which can reduce data handling and processing efficiency, while at the same time increasing the cost of data storage and management. This can be curbed be reducing data to the right size by using data governance techniques like data cleansing and de-duplication