Files
courses/2024_Praxis_der_Programmierung/ue6/loesung/UE6_7.c
T
2024-11-14 13:11:04 +01:00

19 lines
325 B
C

#include <stdio.h>
unsigned long long explode(unsigned int m, unsigned short n);
int main(){
printf("2* 2^n: %llu", explode(2,3));
}
unsigned long long explode(unsigned int m, unsigned short n){
return m << n; // n mal nach links shiften m*2^n
}
struct Node {
int data;
struct Node *next;
};