Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.
2037Write a program that an operator and two operands read from input operand operator on the implementation and results display.
1815A program to allow an input operand and operator from the operator and read on the display and output operand.
1908Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout
XYZ,
2126what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175
5 6602#include
#include
int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?
2 3184
What is cohesion and coupling in c?
Is c still relevant?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Is main is a keyword in c?
Why we not create function inside function.
Can we add pointers together?
What do you know about the use of bit field?
Are pointers integers in c?
If I have a char * variable pointing to the name of a function ..
What are types of functions?
What is a const pointer?
Can you tell me how to check whether a linked list is circular?
Explain the difference between malloc() and calloc() in c?
Where are c variables stored in memory?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?