#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; }
Enter x value 10 Bitwise Negation is: -11
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
JDBC
JSP
Servlets
Java Quiz
C Material
C Programs
Java Interview Questions and Answers
SQL Interview Questions and Answers
100 Most Asked Java Interview Questions and Answers
Python Interview Questions
Write a Java program to swap the first and last elements of an array and create a new array
Write a Java program to count the letters, spaces, numbers and other characters of an input string
Write a Java program to convert a binary number to decimal number
Write a Java program to swap two variables
Write a Java program that accepts an integer (n) and computes the value of n+nn+nnn
Write a Python program to display the current date and time.
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Write a Python program that checks whether a specified value is contained within a group of values.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
Java Quiz - 8
Java Quiz - 12
Java Quiz - 23
Java Quiz - 10
Java Quiz - 22