C language assignment help

Page 1

C Language Assignment Help Way 1 : Assignment Operator used to Assign Value

int main() {

int value;

value = 55;

return (0);

} In the above example, we have assigned 55 to a variable ‘value’.

Way 2 : Assignment Operator used To Type Cast. int value;

value = 55.450;

printf("%d",value); Assignment operator can type cast higher values to lower values. It can also cast lower values to higher values

Way 3 : Assignment Operator in If Statement if(value = 10)

printf("True");

else


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.