Multiplication with a power of 2 | Efficient C / C ++ program to compute x * ( 2 ^ n ) ; Driven program to check above function
#include <stdio.h> NEW_LINE typedef long long int ll ; ll multiply ( ll x , ll n ) { return x << n ; } int main ( ) { ll x = 70 , n = 2 ; printf ( " % lld " , multiply ( x , n ) ) ; return 0 ; }