Write a program to find factorial of the given number.

Recursion: A function is called'recursive 'if a statement within the body of a function calls the same function. It
is also called'circular definition '. Recursion is thus a process of defining something in terms of itself.
Program: To calculate the factorial value using recursion.
‪#‎include‬
int fact(int n);
int main(){
int x, i;
printf("En ter a value for x: \n");
scanf("%d" ,&x);
i = fact(x);
printf("\n Factorial of %d is %d", x, i);
return 0;
}int fact(int n){
/* n=0 indicates a terminatin g condition */
if (n
return (1);
}else{
/* function calling itself */
return (n * fact(n - 1));
/*n*fact(n -1) is a recursive expression */
}
}
Output:
Enter a value for x:
4
Factorial of 4 is 24
Explanatio n:
fact(n) = n * fact(n-1)
If n=4
fact(4) = 4 * fact(3) there is a call to fact(3)
fact(3) = 3 * fact(2)
fact(2) = 2 * fact(1)
fact(1) = 1 * fact(0)
fact(0) = 1
fact(1) = 1 * 1 = 1
fact(2) = 2 * 1 = 2
fact(3) = 3 * 2 = 6
Thus fact(4) = 4 * 6 = 24
Terminating condition( n
infinite loop.)
Read More »

Important Interview questions on basic Programming

1. Write a program to find factorial of the given number...
2. Write a program to check whether the given number is even or odd.
3. Write a program to swap two numbers using a temporary variable.
4. Write a program to swap two numbers without using a temporary variable.
5. Write a program to swap two numbers using bitwise operators.
6. Write a program to find the greatest of three numbers.
7. Write a program to find the greatest among ten numbers.
8. Write a program to check whether the given number is a prime.
9. Write a program to check whether the given number is a palindrome c number.
10.Write a program to check whether the given string is a palindrome .
11.Write a program to generate the Fibonacci series.
12.Write a program to print"Hello World"without using semicolon anywhere in the code.
13.Write a program to print a semicolon without using a semicolon anywhere in the code.
14.Write a program to compare two strings without using strcmp() function.
15.Write a program to concatenat e two strings without using strcat() function.
16.Write a program to delete a specified line from a text file.
17.Write a program to replace a specified line in a text file.
18.Write a program to find the number of lines in a text file..
19.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user
inputs a number out of the specified range, the program should show an error and prompt the user for a
valid input.
20.Write a program to display the multiplica tion table of a given number..
21.WAP to check a string is Caliondrom e or not. // Maventic question.
22.WAP to print DONE,witho ut using any loop. // asked to my frnd in any company.
23.WAP to print DONE,witho ut using any loop and any conditonal clause or operators. // asked to me as a cross question of 22th question by the person i asked 22th ques.
24. WAP to find out the longest word in a string.
25.Prog of WORLD MAP. // this code was written by someone,i forgot his name,he won award for this code as short and best c code. JUST FOR FUN //
26.WAP to print the triangle of letters in increasing order of lines..
27.WAP to print'xay'in place of every'a'in a string.// DOC Update on 24-jan-12.
28.Count the Total Number of 7 comming between 1 to 100.
29. Code for duplicate' s removal,by Amit Aru.. // Similar question was asked in Maventic 2nd round to me,,
30. WAP to find out if a given number is a power series of 2 or not,withou t any loop and without using % modulo operator.. // asked by someone on BJS..



Read More »

Top 5 Ways to Hack Facebook Account


 
Every day i get lot of comments and  emails asking questions related to Facebook Hacking, I get tired and frustrated answering the same questions every single day, So to make life easy  for me and my blog readers  today i will share the best and successful ways by which you can hack a face book Account in 2013.

Is it Possible To Hack Any FaceBook Account ?
Yes! As a matter of fact, almost anything can be hacked. But before you learn the real ways to Hack Facebook account, the following are the things you should be aware of
1. There is no ready made software that can Hack Facebook Accounts and get you the password with just a click of a button. So if you come across any website that claims to sell such software's, I would advise you not to trust them.
2. Never trust any email hacking service that claims to hack any email for just $100 or $200. Most of them are no more than a scam.
With my experience of over 4 years in the field of Hacking and Security i can say the following are the successful methods by which You can hack a Facebook Account in 2013.
How To Hack Facebook Accounts In 2013 - Top 5 Ways- Keylogging  Difficulty -  Easy Success Rate - 90 %
 
Key logging is one of the Easiest ways that you can use to Hack Face book Accounts. (Keylogging or keylogger) sometimes called a spying software is a small program which is used to monitor a local or a Remote PC, When a keylogger is installed on a victims computer it can monitor and capture each and every keystroke typed on the victims PC,the captured Keystrokes are sent to the Hacker.
No doubt, these keystrokes contain the victim’s Face book Account Password and other such credential data thus key logger can be used for many purposes such as monitoring, Hacking and many more




Phishing Difficulty - Moderate Success Rate - 70 %  
Phishing is an attempt to criminally and fraudulently acquire sensitive information, such as user names, passwords and credit card details, by appearing as a trustworthy entity . There are many Ways by which a hacker can craft his Phisher (Fake Page) to fool the victim. In a simple phishing attack a Hacker will create a phisher ( fake login page) which exactly looks like the real facebook page and then asks the victim to login into that page, 
Once the victim logins through the fake page the victims "Email Address" and "Password" is stored in a text file, The hacker then downloads the text file and get's his hands on the victims credentials. I have explained a step by step phishing process to Hack Facebook account  in the following Post
Mobile Phone Hacking Difficulty - Easy Success Rate - 90 %
 Many users access Facebook from their smart Phones. If you have access to the victims Mobile phone, You can easily install a Cell phone spying software and thus you can easily hack , Monitor the victims Facebook Account .Today there are Many Cellphone Spying  software's, Some of the Best are listed below
1. Mspy
                               2. Spy Phone Gold


Session Hijacking Difficulty - Moderate Success Rate - 70 %

Session Hijacking can be often very dangerous if you are accessing Facebook on a http:// connection, In a Session Hijacking attack a hacker steals the victims browser cookie which is used to authenticate a user on a website and uses to it to access victims account, Session hijacking is widely used on Lan's. I will soon be writing a tutorial on how to hack facebook Account by session Hijacking


Side Jacking Using Fire Sheep Difficulty - Moderate Success Rate - 60 %
 
Fire sheep is widely used to carry out side jacking attacks, Fire sheep only works when the attacker and the victim is on the same wifi network or in LAN .Fire sheep is an extension developed by Eric Butler for the FireFox web browser. The extension uses a packet sniffer to intercept unencrypted cookies from certain websites (such as Facebook and Twitter) as the cookies are transmitted over networks, exploiting session hijacking vulnerabilities.
It shows the discovered identities on a sidebar displayed in the browser, and allows the user to instantly take on the log-in credentials of the user by double-clicking on the victim's name.
Read More »

How to Find Serial Key of Any Software


The key 94FBR is a part of Office 2000 Pro CD activation key that is widely distributed as it bypasses the activation requirements of Office 2000 Pro. By searching for 94fbr and the product name, you are guarantee that the pages that are returned are pages dealing specifically with the product you're wanting a serial for. Follow simple steps given below to learn this trick

    1. Go to Google
    2. Then type  Software Name 94FBR

  • Replace Software Name with the name of software whose serial key you want to find
  • Eg: To find serial key of Nero i will type Nero 94fbr
    3. Now press Enter and you will find serial key of software you are looking for as shown below.
 
google trick to find serial key
Read More »

How to disable the time in computer on internet cafe and use unlimited time


1. goto run and type regedit

2. than navigate to "HKEY_CURRENT_USER>Appevents>software>classes>microsoft>windows>current version>internet settings>policies>system"

3. than on the right pane it show Disable Taskmanager, right click on it and scroll down to modify

4. and change the value on it 0

5. Open taskmanager by holding "ALT+CTRL+DELETE" Than disable the internet cafe timer.
Now you will get unlimited timer on internet cafe.
Read More »