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 :: arduino empty serial buffer 
C :: c extern 
C :: text to hex in C 
C :: Program to print all palindromes in a given range 
C :: check if string contains a character in c 
C :: command args c 
C :: threads in c 
C :: compile multiple c files 
C :: Find the how many bits is turned on in a numebr 
C :: c check if character is lower case 
C :: logical operators in c 
C :: increment pointer value in c 
C :: bitwise operators 
C :: arduino dont working dc motor 
C :: columntransformer in randomizedsearchcv 
C :: c program for calculating product of array 
C :: Multiplying a u64 to u128 in Rust 
C :: esp local control 
C :: scranton inhabitants 
C :: arrow keys gaming keyboard 
C :: overhead computer science 
C :: python project script run 
C :: Integer Output 
C :: cut first part of string c 
C :: unia c 
C :: how much larger integer i can input in c language? 
C :: how to make play a song javascript 
C :: passing an array of unspecified number of variables to a function 
C :: c ternary operator 
C :: c while loop 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =