How to reverse a string using a recursive function, without swapping or using an extra memory?
31 102832#include
Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
5 9500int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?
TCS,
4 12624
Write a program to print factorial of given number using recursion?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Why is c known as a mother language?
What are the different types of endless loops?
What are structural members?
How can I handle floating-point exceptions gracefully?
What are the scope of static variables?
What is meant by keywords in c?
What are formal parameters?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is "Hungarian Notation"?
Explain output of printf("Hello World"-'A'+'B'); ?
How can you read a directory in a C program?
What is a header file?
What is a null string in c?