Skip to main content

Posts

Showing posts from November, 2012

Decimal To Binary Conversion

Program For Converting the Decimal to Binary Number #include<stdio.h> #include<conio.h> int main(){     long int n,r,q;     int binary[100],i=1,j;     clrscr();     printf("Enter any decimal number: ");     scanf("%ld",&n);     q = n;     while(q!=0){      binary[i++]= q % 2;      q = q / 2;     }     printf("Equivalent binary value of decimal number %d: ",n);     for(j = i -1 ;j> 0;j--)      printf("%d",binary[j]);   getch(); }
For Attaching A Your Folder in Right click menu  ( For Attaching a folder in SendTo Men) 1. Copy the Folder. 2. Open RUN.        Type   %APPDATA%\Microsoft\Windows\SendTo        Click Ok. 3.Right Click And select Paste ShortCut. And Log Off The System.

Function Key ....

ASCII Value of Function keys The following table lists the function keys on a standard keyboard, with the corresponding key code values that are used to identify the keys in ActionScript: Function key Key code ASCII key code F1 112 0 F2 113 0 F3 114 0 F4 115 0 F5 116 0 F6 117 0 F7 118 0 F8 119 0 F9 120 0 F10 This key is reserved by the system and cannot be used in ActionScript. This key is reserved by the system and cannot be used in ActionScript. F11 122 0 F12 123 0 F13 124 0 F14 125 0 F15 126 0 Other keys The following table lists keys on a standard keyboard other than letters, numbers, numeric keypad keys, or function keys, with the corresponding key code values that are used to identify the keys in ActionScript: Key Key code ASCII key code Backspace...

ASCII Character...

..ASCII Codes of All Character of Keyboard.. ASCII Hex Symbol 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 A B C D E F NUL SOH STX ETX EOT ENQ ACK BEL BS TAB LF VT FF CR SO SI ASCII Hex Symbol 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US ASCII Hex Symbol 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F (space) ! " # $ % & ' ( ) * + , - . / ASCII Hex Symbol 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 0 1 2 3 4 5 6 7 8 9 : ; < = > ? ASCII Hex Symbol 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F @ A B C D E F G H I J K L M N O ASCII Hex Symbol 80 81...

Looping In C

 Looping questions in c and answers (1) What will be output of following c code? #include<stdio.h> extern int x; int main(){     do{         do{              printf("%o",x);          }          while(!-2);     }     while(0);     return 0; } int x=8; (2) What will be output of following c code?         #include<stdio.h> int main(){     int i=2,j=2;     while(i+1?--i:j++)          printf("%d",i);     return 0; } (3) What will be output of following c code? #include<stdio.h> int main(){     int x=011,i;     for(i=0;i<x;i+=3){          printf("...
Variable naming rule questions in c Following question are based on variable naming rules in c. If you have any doubt in the variable naming rules you can ask here. Rules for identifiers in c language 1. What will be output of the following c program? #include <stdio.h> int main(){ int goto =5; printf( "%d" , goto ); return 0; } (A) 5 (B) ** (C) ** (D) Compilation error (E) None of these Explanation: Invalid variable name. goto is keyword in c. variable name cannot be any keyword of c language. 2. What will be output of the following c program? #include <stdio.h> int main(){ long int 1a=5l; printf( "%ld" ,1a);     return 0; } (A) 5 (B) 51 (C) 6 (D) Compilation error (E) None of these Explanation: Invalid variable name. Variable name must star from either alphabet or underscore. 3. What will be output of the following c program? #include <stdio.h...