-
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 hand -
What 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...
-
-
-
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,X -
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);
}
-
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++) {
... -
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(); -
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();
}
-
-
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...
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.
Difference between printf and cprintf
What is the difference between cprintf and printf? Please explain in detail.
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;iPrint number of distinct characters in a string.
How do I implement a C program that reads a string and prints a table with the number of occurrences of each character in the string.
Ex: Rubber. r = 2, u = 1, b = 2, e = 1.C program to count numbers of positive and negative numbers
Write a C program using arrays to count the numbers of positive and negative numbers which accepts the inputs as "size of the array" & "elements of the array" and outputs as "number of negative numbers in an array are" & "numbers of positive numbers in an array are" ?
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans