Execution Time increases by 0.96 secs just because I replaced the data type of a variable from “long long int” to "int" . I was wondering why this happens ? Please Note ( long long takes lesser time than just int ; this is what i found weird)
sizeof(int) is 16 bits(minimum possible in C language) where as long int is 32 bits and long long int is 64 bit here the space required for the execution of the code will increase exponentially(ie 2^n).
Since the space required has increased,
=>more data has to be carried in between RAM and processor,
=>since finite bits of data can be transferred per cycle from ram to processor => more cycles,
(varies from processor to processor)