:: Home Page      
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
 Categories >> Software >> Programming Languages >> C
Suggest New Category 


Question Asked @ Answers Views     Select
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.    0  7
 Illustrate it   summing the series n terms using  (i) while loop (ii) do-while loop    0  9
main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }    0  12
main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }    1  20
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }    0  13
a c code by using memory allocation for add ,multiply of sprase matrixes    0  18
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions? wipro   0  46
how to swap 4 number without using temporary number?    2  79
12344321 123 321 12 21 1 1 how i print this program?? dsr-management   2  81
1 1 12 21 123 321 12344231 how i creat it with for loop??    0  54
main() { int l=6; switch(l) { default:l=l+2; case 4:l=4; case 5:l++; break; } printf("%d",l); }    1  62
#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif vector   1  73
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); } vector   0  45
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); } vector   0  49
main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); } vector   1  59
E-Mail New Answers        Answer Selected Questions        Post New c Questions
 [1]    2  ... 12   ... 23   ... 34   ... 45   ... 56   ... 67   ... 78   ... 89   ... 100   ... 111   ... 122   ... 133   ... 144    Next
Un-Answered Questions
 Question Views   Select
why wipro wase 196
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ? 155
write a c program to find the sum of five entered numbers using an array named number 198
c program for searching a student details among 10 student details 357
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types. 509
write a c program to calculate sum of digits till it reduces to a single digit using recursion 139
why we wont use '&' sing in aceesing the string using scanf 284
ATM machine and railway reservation class/object diagram 1879
write a program to copy the string using switch case? 633
c program to arrange digits in a no in ascending and descending order 952
Write a program to add a given duration with time(24hrs format) 268
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc 246
how do you programme Carrier Sense Multiple Access 203
can we change the default calling convention in c if yes than how.........? 219
E-Mail New Answers        Answer Selected Questions