int func (int num)The value return by function (435) is{int count = 2;while (num){count ++;num>>=1;}return (count);}
#include <stdio.h>int main(){int a = 2;int b = 2;int c = a || --b;int d = a-- && --b;printf("a = %d, b = %d, c = %d, d = %d", a, b, c, d);return 0;}
What is an Algorithm?The word Algorithm means A set of rules to be followed in calculations or other problem-solving operations Or A procedure for solving a mathematical problem in a finite number of steps that frequently by recursive operations .Therefore Algorithm refers to a sequence of finite steps to solve a particular problem.Algorithms can be simple and complex depending on what you want to achieve.