-
What change is required in the following program so that its output becomes 3,6,11,20,37,......1034?
c#include
#include
int main()
{
int a=1,r=2,i;
for (i=0;iDifference between printf and cprintf
What is the difference between cprintf and printf? Please explain in detail.
C program 1-D array
Write a function to count how many students get marks higher than the average and how many students get marks lower than average mark out of n number of students.
Display different combinations of some letters forming a word
w.a.p in C to input a word. find the total no. of letters forming the word. and using these letters display the total no. of possible combinations without repeating any letter.for example: if string entered is "sunil", the total no. of letters in the word is 5 i.e. s,u,n,i,l.and then displays sunil sunli...
Print value of I in C
Print value of i ?
c#include
#include
void main()
{
int i=1*4/3-27%3^2+100*0.5(4>3?1:2);
clrscr();
printf(“%d”, i);
getch();
}
Which order the functions would be called?
In the following code, in which order the functions would be called?
a= f1(23,14)*f2(12/4)+f3();C program - find mistake
In following program, because of a typo mistake, the test() function returns zero. Actual expected value is different than zero. Assuming the typo mistake is fixed find the expected output and enter the number as answer.
var nums = [100,1000,10,1010];
cfunction test() {
var a = nums[0];
var b = nums[0];
for (i = 0; i < a.length; i++) {
...What is statement and branch coverage for this program?
c#include
main()
{
call add();
int NO1,NO2NO3
}
void add()
{
scanf("%d",&NO1);
scanf("%d",&NO2);
NO3=sum(NO1,NO2);
printf("%d",NO3);
}
void sum(int x,int y)
{
return(x+y);
}
What is result for of this C Code block?
what is the result
main()
{
int x=15;
printf("%d %d %d",x!=15,X=20,XWhat is static memory allocation and dynamic memory allocation?
Static memory allocation: The compiler allocates the required memory space for a declared variable.By using the address of operator,the reserved address is obtained and this address may be assigned to a pointer variable.Since most of the declared variable have static memory,this way of assigning pointer value to a pointer variable is known as static memory allocation. memory is assigned during...
How to find angle between hands of clock between old time and new time?
input1: 02:45:56 (string)
input2: 03:06:17 (string)
output:
1) angle between the old position of hour hand and new position of hour hand
2) angle between the old position of minute hand and new position of minute hand
3) angle between the old position of second hand and new position of second handFinding a number which is a power of 2in a single step
How to find whether the given number is a power of 2 in single step (without using loops)?
How to write a program for fibonacci series using perl?
Can someone help me in writing program for fibonacci series using perl..
Ans