Computer Science, asked by KrishKumarShah, 8 months ago

Answer the following questions:

1. What is data type? Give an example.

2. What is the difference between 19/6 & 19/60.

3. Give the difference between ++a, a++ & a+ =1.​

Answers

Answered by HARSHPRAJAPATI2005
2

Answer:

1.In computer science and computer programming, a data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. ... This data type defines the operations that can be done on the data, the meaning of the data, and the way values of that type can be stored.

2.if we divide this two numbers we get 3.167and 0.3167 the decimal place in first division is 3.1 67 as here in second it is shifted towards the left and become 0.136 7

C is basic for the coding.Let us Start with C and the basic difference between a++ and ++a in coding is given below:

First use the value of a than increased by 1 is the meaning of a++ in coding.

First increase the value of a than used in expression is the meaning of ++a in coding.

For Example:

Example

#include<stdio.h>

#include<conio.h>

void main()

{

int x,a,b,c;

a = 2;

b = 4;

c = 5;

x = a-- + b++ - ++c;

printf("x: %d",x);

getch();

}

Output

x: 0

Answered by thakursandhya650
0

Explanation:

what is the difference between 19/6&19/60

Similar questions