Search
 
SCRIPT & CODE EXAMPLE
 

C

C Assignment Operators

// Working of assignment operators
#include <stdio.h>
int main()
{
    int a = 5, c;
    c = a;      // c is 5
    printf("c = %d
", c);
    c += a;     // c is 10 
    printf("c = %d
", c);
    c -= a;     // c is 5
    printf("c = %d
", c);
    c *= a;     // c is 25
    printf("c = %d
", c);
    c /= a;     // c is 5
    printf("c = %d
", c);
    c %= a;     // c = 0
    printf("c = %d
", c);
    return 0;
}
Comment

c program for assignment operator

#include<stdio.h>
int main(){
int a;
a = 55;
printf(“value of a = %d”,a);
return (0);
}
Comment

PREVIOUS NEXT
Code Example
C :: declaration of string in c 
C :: Increment & Decrement Operator in C language 
C :: pointer in c 
C :: sphinx-doc 
C :: example of header file in c 
C :: c pointers and arrays 
C :: c convert float to int 
C :: hostbuilder add environment variables 
C :: 2 html 1 javascript 
C :: type cast in c 
C :: allocating memory for 1Mb text file in C 
C :: powershell some fonts like #include are dissapearing 
C :: c fibonacci series recursion 
C :: google business customer care number india 24/7 
C :: gdebi install with yes option 
C :: FILE* fptr = fopen("test", "r"); if (__ (fptr)) { printf("End of file reached"). (42); } 
C :: minimun number of moves in c 
C :: reading arrays from stdin c 
C :: Program to Find Swap Numbers Using Temporary Variable 
C :: Chef in Vaccination Queue codechef solution in c++ 
C :: Array in element from lowest 
C :: c language dictionary implemet 
C :: [4,5,6] 
C :: unconstrained box flutter 
C :: C How to use enums for flags? 
C :: online embedded c compiler 
C :: how to write a hello world program in c 
C :: in c check if triangle is a right triangle 
Dart :: circle avatar from image asset flutter 
Dart :: flutter border around textbutton 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =