MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a C-program to print bitwise NEGATION operation?

  1. Home
  2. C Language Programs

Write a C-program to print bitwise NEGATION operation?

Write a C-program to print bitwise NEGATION operation


#include <stdio.h>
                                                                         
int main() {
    int x,z;
    printf("Enter x value");
    scanf("%d",&x);
    z=~x;
    printf("\n Bitwise Negation is:  %d",z);
    
    return 0;
}
                                            

Output:

Enter x value 10

Bitwise Negation is: -11




More Programs


20 . Write a C-program to print bitwise LEFT SHIFT operation
21 . Write a C-program to print bitwise RIGHT SHIFT operation
22 . Write a C-program to print odd or even number using ternary operator
23 . Write a C-program to print max number using ternary operator
24 . Write a C-program to print ODD or Even Number using if else condition
25 . Write a C-program to print max number using if else condition
26 . Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3)
27 . Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4)
28 . Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4 using 2 conditions)
29 . Write a C-program to check the given number is valid or invalid(value must between 20 and 30)
30 . Write a C-program to check the given character is vowel or consonant



Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a java Program to check the given number is Palindrome or not

Write a java Program to print Armstrong number between 1 to 1000

Write a Java program to check whether Java is installed on your computer or not

Write a Java Program to Find the sum of the digits of a number

Write a java program to Find the index of the smallest number in an array

Python Practice Programs

Write a python program to check memory sizes of list ,set ,tuple

Write a Python program to remove duplicates from a list

Write a Python Program for cube sum of first n natural numbers?

Write a python program to access news using python

Write a Python Program to Find the Factorial of a Number.

Java Quiz

Java Quiz - 13

Java Quiz - 20

Java Quiz - 14

Java Quiz - 23

Java Quiz - 1

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs