How do you write a program which produces its own source code as output?
when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .
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 is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
which type of question asked from c / c++ in interview.
What is the difference between arrays and pointers?
which of 'arrays' or 'pointers' are faster?
What happens if a header file is included twice?
what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }
How is a structure member accessed?
int i=~0; uint j=(uint)i; j++; printf(“%d”,j);
write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?
write a program in c language to print your bio-data on the screen by using functions.
6 Answers College School Exams Tests, IBM,