If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
12 45266Write a C function to search a number in the given list of numbers. donot use printf and scanf
6 11276what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
3 7571i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }
2 4555The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................
HOV Services, IBM, Potty,
14 26374what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>
TCS,
5 8611
State the difference between realloc and free.
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Once I have used freopen, how can I get the original stdout (or stdin) back?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is type qualifiers?
ATM machine and railway reservation class/object diagram
What is variable and explain rules to declare variable in c?
write a program to find the given number is prime or not
Is c weakly typed?
What is a string?
When should a type cast not be used?
With the help of using classes, write a program to add two numbers.
write a program to display all prime numbers
What is a memory leak? How to avoid it?
Explain what does it mean when a pointer is used in an if statement?