“C Operator Penugasan” Kode Jawaban

C Operator Penugasan

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

Program C untuk operator penugasan

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

Jawaban yang mirip dengan “C Operator Penugasan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya