How to write a C Program to Defines the entry point for the console application in C Programming Language ?
Solution:
//Defines the entry point for the console application #include "stdio.h" int main(int argc, char argv[]) { unsigned int x,y,p,n,ergebnis; printf("Bitte gegen sie die Zahl ein die Veraendert werden soll: "); scanf("%d", &x); printf("\nBitte geben sie die Zahl ein von der die zu Veraendernde Bits kommen sollen:"); scanf("%d", &y); printf("\nBitte geben sie die Position der Bits ein von der an die Veraenderung stattfinden soll (Zaehlung beginnt rechts mit Bit 0): "); scanf("%d", &p); printf("\nBitte geben sie die Anzahl der Bits ein die veraendert werden sollen: "); scanf("%d", &n); ergebnis= ~y; ergebnis= ergebnis << (32-n); ergebnis= ergebnis >> (32-(p+1)); ergebnis= ergebnis ^ x; ergebnis= ergebnis & x; printf("\n%d\n",ergebnis); char ch; scanf("%c",& ch); getchar(); return 0; }
Learn More :
Application
Entry
Point
Console
- How To Write a C program that reads your first and last names and then converts them to upper-case and lower-case letters. The results will be printed to standard output console.
- C program that receives 10 float numbers from the console and sort them in non-ascending order, and prints the result
- C Program to Defines the entry point for the console application
- Defines the entry point for the console application.
- File Handling (console to file) in C Program