Basic Program of Pointer

understanding c pointers

Basic Program of Pointer #include <stdio.h> int main() { printf(“\n\n\t\tEduguru – Pointer program\n\n\n”); int var = 24; // actual variable declaration int *p; p = &var; // storing address of int variable var in pointer p printf(“\n\nAddress of var variable is: %x \n\n”, &var); // address stored in pointer variable printf(“\n\nAddress stored in pointer variable … Read more

How to Install Wine to Run Windows Applications on Linux

Step 1 – Setup PPA First of all, If you are running with a 64-bit system enable 32-bit architecture. Also, install the key which was used to sign packages of wine. sudo dpkg –add-architecture i386 wget -qO – https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add – Use one of the following commands to enable the Wine apt … Read more

Building GPS Data Cables and Power Cords

A GPS receiver is designed as a standalone, mobile piece of equipment you can take with you in a car or on foot into the wilderness. It wouldn’t be very useful if it needed a hard-wired connection — how often would you want to know the precise coordinates of your desktop PC? However, most GPS … Read more

GPS Secrets

There’s a lot of information to find — technical information, diagnostic information, and more. Let’s begin our tour of the secrets of GPS units. Hidden Secrets Most electronic devices contain hidden diagnostic screens or setup menus that are used by the manufacturer to diagnose faults and possibly remedy them. GPS receivers are no different, but … Read more

The First Windows Program in C

The First Windows Program in C

The First Windows Program in C To keep things simple we would begin with a program that merely displays a “Hello” message in a message box. Here is the program… #include <windows.h> int _stdcall WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdline, int nCmdShow ) { MessageBox ( 0, “Hello!”, “Title”, 0 ) ; return … Read more

Hacking Gmail?

Of course, all that power just begs to be abused. Power corrupts, as they say, and hackers are nothing but a corrupt bunch: Almost as soon as Gmail was launched, hackers were looking at ways to use those capabilities for other purposes. They investigated the incredibly rich interface, and saw how much of the processing … Read more

What’s Gmail?

March 31, 2004. A watershed in human history. Google’s web-based e-mail service, still now at the time of this writing in Beta, and available only to people invited by other existing users, was launched. Offering a gigabyte of storage, an incredibly advanced JavaScript interface, and a series of user interface innovations, Gmail was an instant … Read more

C program to print pascal triangle

C program to print pascal triangle #include <stdio.h> long factorial(int); int main() { int i, n, c; printf(“Enter the number of rows you wish to see in pascal triangle\n”); scanf(“%d”,&n); for (i = 0; i < n; i++) { for (c = 0; c <= (n – i – 2); c++) printf(” “); for (c = 0 ; c <= i; c++) printf(“%ld “,factorial(i)/(factorial(c)*factorial(i-c))); printf(“\n”); } return 0; } long factorial(int n) { int c; long result = 1; for (c = 1; c <= n; c++) result = result*c; return result; }