If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
12 46276Write a C function to search a number in the given list of numbers. donot use printf and scanf
6 11714what 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 7829i 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 4754The 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 27348what 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 8969
What is a loop?
Explain how can I avoid the abort, retry, fail messages?
Difference between constant pointer and pointer to a constant.
How can I recover the file name given an open stream?
What is a program?
How old is c programming language?
How can you restore a redirected standard stream?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Explain how do you sort filenames in a directory?
What are the primitive data types in c?
Define the scope of static variables.
a c code by using memory allocation for add ,multiply of sprase matrixes
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions