write a c program to input initial & final time in the
format hh:mm and find the time intervel between them? Ex
inputs are initial 06:30 final 00:05 and 23:22 final 22.30
No Answer is Posted For this Question
Be the First to Post Answer
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
why the range of an unsigned integer is double almost than the signed integer.
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }
Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.
16 Answers Aricent, Cisco, Directi, Qualcomm,
main() { show(); } void show() { printf("I'm the greatest"); }
main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024
#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }