Implement a t9 mobile dictionary.
(Give code with explanation )
Answer / guna
http://www.eecs.yorku.ca/course_archive/2004-05/F/4441/T9.java
http://javatroops.blogspot.in/2012/10/implement-mobile-t9-using-trie.html
Is This Answer Correct ? | 2 Yes | 1 No |
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
#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); }
int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }
how to concatenate the two strings
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }
Print an integer using only putchar. Try doing it without using extra storage.