how to TOGGLE Nth bit of variable in a MACRO
#define d 10+10 main() { printf("%d",d*d); }
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
Explain goto?
What is c system32 taskhostw exe?
What are types of preprocessor in c?
What are the types of data types and explain?
There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.
What's the best way to declare and define global variables?
what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7
#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?
What is the difference between strcpy() and memcpy() function in c programming?
which types of data structure will i use to convert infix to post fix???