Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented
Input: 11:30 Output: 13:10
Input: 18:25 Output: 21:58


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What are the 4 types of unions?

0 Answers  


study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above

15 Answers   Accenture, TCS,


using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


swap 2 numbers without using third variable?

0 Answers   IBS,


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,






What is the maximum length of an identifier?

0 Answers  


What is the difference b/w Structure & Array?

6 Answers  


hi how to convert program from notepad to turboc editor can u please help me

3 Answers  


What is switch in c?

0 Answers  


Who had beaten up hooligan "CHAKULI" in his early college days?

1 Answers  


Explain how are 16- and 32-bit numbers stored?

0 Answers  


union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }

3 Answers  


Categories