Posts

Showing posts from August, 2015

Comparison of Linus Commands and Windows Command Line Commands.

Attributes                     Linus                                                       Windows 1. List Status                  ls                                                                dir 2. Change directory       cd                                                               cd 3. Open Editor               vi                     ...

Most likely Questions you face in Technical Interviews.

1. Write a Program to accept a number and print the number in reverse order. E.g. if 1324 is the number then the output will be 4231 in C language 2. Write a Program to accept a number and print sum of it’s digits in C language 3. Write a program to accept a number from user and check it it is Armstrong number or not i.e. 153 = 1^3 + 5^3 + 3^3 = 153 in C language 4. Write a program to print following outputs in C language * ** *** **** 5. Write a program to print following outputs in C language **** *** ** * 6. Write a program to print following outputs in C language       A     BBB   CCCCC DDDDDDD 7. Write a program to print outputs in C language. ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A 8.  Write a program to accept a number from user and print it’s factorial in C language  Eg: factorial of 5 is:- 5! = 5 * 4 * 3 * 2 * 1=120 9.   How to get the first and the last element of a linked list  ...

Using Notepad via Command Line in Windows(CMD).

Create a file using command prompt in Windows Step 1: type nul > file1.txt Step 2: echo My Name is Vinay Kumar > file1.txt  Step 3: start notepad file1.txt