Saturday, August 26, 2017




Pointers are one of the most important feature in C language. Some features like dynamic memory allocation cannot be done without pointers. 


We know that all variables have an address which can be accessed using "&" sign. For an example loot at the code given below. Try to run it.


 #include <stdio.h>  
 int main () {  
   int number;   
   printf("Address of variable 'number' = %x\n", &number );    
   return 0;  
 } 

This will print the address of the number variable.
So what's the relationship with the addresses of variables and pointers?

A pointer is a variable whose value is the address of another variable

So if i take an integer variable called "X" and an Integer pointer variable called "Y", Y will be equal to the address of X, not the value of X. And note that to store an address of an Integer variable, the pointer variable also should be an Integer pointer. Which means the types of the pointer variable and the variable should be the same and it's obvious.
It's more like some one is trying to install an Android app on a Apple phone which wont work. You should install an Android app on a Android phone.

Given below is a simple diagram which explains the simple theory behind the pointers.
We have an integer variable X which has an address of 200 in the memory ( in real environment it may not 200 ). And there's a pointer variable called Y which has the address of X which is 200.






Sunday, August 20, 2017

Install Java on Windows 



This tutorial is about how to install Java on windows. This is pretty easy. Just follow the steps.


  • First download and install Java. To download java CLICK HERE.
  • After installing it we have to set the path variables correctly.
  • To do that go to My Computer.
  • Right click and click on "Properties".
  • Then click on "Advanced System Settings".
  • The click on "Environmental Variables".
  • Now under "System Variables" select the variable named "path" and click "edit".
  • Now go to the place where you have installed Java. Usually it's installed in Program Files in C drive.
  • Then inside "Java" folder select "jdk" folder and then again go to "bin" folder.
  • Now copy the path of the bin folder (See the picture below)

  • The path is usually like this C:\Program Files\Java\jdk1.8.0_101\bin
  • Now paste the copied path, appended by a semi colon in the "Variable value" in the dialog box which appeared after clicking Path variable previously. (Like shown in the figure below)
  • Now we have to do this again for "jre" as well. So don't close the dialog box.
  • Now again go to the place where java is installed and now select the "jre" folder and go to bin folder and copy the path.
  • Now paste the copied path in the "variable value" appended with a semi colon.
  • Now click Ok.
  • Now we need to set CLASSPATH.
  • You may have the ClassPath variable or not in the system variables.
  • If not create a new one giving the "CLASSPATH" for the variable name.
  • Now we need to set the variables values.
  • Now again go to the "Java" installed folder and go to "jdk" folder ad go to "bin" folder.
  • Copy the path again and paste it in the for "Variable Value" in the dialog box appended by a semi colon.
  • Now again go to "jre" folder and and go to "bin" folder and copy the path.
  • Then paste it in the "Variable Value" box appended by a semi colon and a dot.
  • Now click okay for all the dialog boxes.
  • Now open windows command prompt and type "java" and "javac".
  • You'll get an output like this



Now all the things are done correctly!!!













  • First you need to download MingGW.
  • Click here to download MingGW
  • After downloading it,double click and run the the downloaded application
  • It'll download some files after you running it, like shown in the figure below.

  • The it'll open up a window where you have to do some selections. Just do like what I've done in the picture below. 


  • What you have to do is put a tick mark to "mingw32-base" which will basically install the C compiler.
  • If you want to install C++ compiler put a tick mark to "mingw32gcc-g++" which I have done in the above picture.
  • Now just click the "Installation" menu and click "Apply Changes".
  • Then it'l start installing the C compiler which will take some time.
  • After finishing the installation open up command prompt and then just copy and paste the given code line below.
  • setx PATH "%PATH%;C:\MinGW\bin;
  • Now this sets the environmental variable path for GCC compiler ( if you don't know what's the path just ignore it, now the compiler has installed correctly )
  • Now everything is done!


Tuesday, March 11, 2014

display/hide text in blogger


This is a special effect which can be added to the blog posts. We can add a Show/Hide button to display and hide texts and images.

It's very easy to do.Only you have to do is start writing a blog post and select "HTML".
Now paste the given code any where you want. 

Replace your message with this words " YOUR MESSAGE" .

And you can change the words "open/close" which I have shown in Red color.  If you change it,it will display your text in the button instead of showing Open/Close

<div id="PBT-fn" style="display: none;">
YOUR MESSAGE
</div>
<button onclick="if(document.getElementById('PBT-fn') .style.display=='none') {document.getElementById('PBT-fn') .style.display=''}else{document.getElementById('PBT-fn') .style.display='none'}" title="Click to show/hide" type="button">Open/Close</button>
<br />


See the examples I have given below.





Monday, March 10, 2014

connect to web sites without internet


When you are unable to connect with the internet this is the solution. This Software can save the web page and show it again and again to the viewer without internet connection. It will download almost the full web page. 

create a flash drive using a dvd


Did you know that in windows 7 we can write files to a DVD and also can use the DVD like we use a pen drive. So you can edit files while they are on the DVD.You can delete them and you can add new files also. Just like a pen drive.
But only Windows XP,Vista and & Windows 7 can read and write files to this DVD.

This is how to do this

1)  Enter the DVD into the DVD writer and wait until the "Auto run" message appear.

2) Now select Burn Files To disk using Windows explorer.

3) Give a name you desire to the disk.

4) Now select "Like a USB flash drive" option and click next.

5) Now "Formatting" message will appear

6) After the format process is finished the DVD will word as a pen drive.






LIKE-EX.COM is a web site which we can get Facebook likes,shares,comments,Twitter followers,re tweets, and lot more social network likes,shares,followers etc. But also we can earn money with this web site.  


This web site is very similar to "Add Me Fast" . The process is the same. You must earn coins and using that coins you can get the likes,shares or anything you want. You can buy the points as well. If you have referrals you got a great chance to earn money without doing anything.


This is what you get when you have referrals.


They give you 250 points and 0.10$ and for each member that signs up under your referral link!

And 10% from money spent by your referrals.

And it's simply great!



  • First go to the site and Register.
  • Then you need to earn points. You can see the selection you have to do in the lest side of the scree.
  • If you like to give Facebook likes and earn coins click on "FB Fanpage Likes" 
  • Then you can see the pages to like.


  • There are lots of pages ,you can see in the picture. And they have shown the points you get after you liked the page.
  • Then select a page and click "Like" 
  • Then the Facebook Page will open.Now like that page.
  • Now you will earn the points.
  • Earn points like this and after you earned 10000 coins you can convert them into cash.
  • But they will give you only $1 
  • To convert coins into money move the mouse pointer towards "Money" at the top of the page.And then a drop down menu will open. Select "Coins to money".
  • Then type the amount of coins you want to convert into cash and finally click "Submit"

This is what you have to do when you want to get likes,shares and other things.


  • Like I have shown in this picture you can see a green color button named as "Add Page/Sites" at the left of the screen. Click on that.
  • The you must select what you need.(Facebook likes,Shares etc.)
  • I have selected Facebook Likes in this picture.
  • Then enter the details as you want. Then click "Add Page"
  • Now everything is Ok. You will get the likes.
  • If you want to edit the page details and also if you want to stop getting likes click on "My Pages/Sites" button at the left of the screen.
  • Now you can see the page you added. Then click on "Edit".



  • Then select "Disabled" to the status and click "Update".

Sunday, March 9, 2014

earn money with PPI


Today I'm going to tell you about another way of earning money. This is called "PPI. Pay Per Install".
The process is simple.This is how we earn money with PPI.


  • First you must register in a PPI web site.
  • We give a link to the visitors to download a software.
  • Then the visitor should go to that link and download the software.
  • But the difference is the visitor will download a setup provided by the PPI web site. And visitor should install it.
  • Then the software will be downloaded.
  • There's no cheating here. It's 100% legal and it's good for the publisher,visitor and to the advertiser too.
  • Finally this is what you have to do. Go to the PPI web site and short the link with the tool they have given and use that link as a download link for your software.
  • Remember to not to include adult content.
SKYMONETIZER.COM

This is the PPI web site I  prefer. Because of this reasons.


  • It's known as a trusted web site and they pay money
  • The payments are higher than the other PPI web site payments.
  • Soon as the visitor downloaded the setup it will allow the visitor to download the software you provided without showing adds and other things..
Cashout limit is for this web site is $50.

You can register from here

Saturday, March 8, 2014

web tools


Remember The Milk

This is a great service provide by WWW.REMEMBERTHEMILK.COM. You can manage the tasks you have to do in future with this web site. And it reminds you what you have to do by sending a Email, MMS or SMS.

Design Mantic

This web site provides you free logos to your business or web site or anything. Just enter the name of your web site/business and they will show you various type of logos. If you want you can edit them and download it.

HIPERURL

If you want to open few links at once, go to this web site and enter those links in the text boxes. And then it provides a single link i=for all those web sites instead of using so many links. I use this tool for lots of my works and such a great service to have.