Posts

Showing posts from 2007

Array of Pointers & Pointer to an entire array

Lets take it by an example: int *p[N]; , where N is any integer number is a declaration for an array of N pointers of type int. This means that if we declare as: int *p[5]; then, p[0], p[1]. … ,p[4] will all be pointers of type int, ie,, they point to memory locations allocated for integer data. Coming to Pointer to an entire array can be declared as say: int (*a)[N]; where N is any integer number. This means that int (*a)[5]; is the declaration for a pointer to an array of length 5 of type int. This is purely a matter of precedence. In the former case, for int *p[5]; Since [] has higher precedence that *, p is recognized as an array first and the * shows that it an array of integer pointers. For the secod case, for int(*a)[5]; the default precedence is overridden by the common paranthesis. Thus, now a is a pointer first and the [] makes it a pointer to an array.

Java vs JavaScript

First of all: Java is not JavaScript and JavaScript is not Java. Java is an Object oriented programming language created at Sun Microsystems, where as JavaScript is a scripting language and is a product of Netscape. Many of their programming structures are similar as they both use the C-style syntax. But, JavaScript has a smaller and simpler set of commands. Moving on, Java can stand on its own, ie,, a program written in Java can be executed on its own, whereas for JavaScript, the code must be embedded inside HTML code for execution on a webpage. In other words, Java can be used to create standalone applications, whereas it is impossible using JavaScript. For the execution of the java program, it is first compiled to form byte codes and these byte codes are interpreted by the Java runtime environment for execution, which makes the execution slower. As for JavaScript, there is no compilation phase. Instead, the JavaScript code is directly interpreted by the web browser for e...

Programmer's Avenue (C/C /Java)

Programmer's Avenue (C/C /Java)

Norton Confidential

Image
Symantec's products have always been successful in gaining my hatred, always and I don't have a clue as to why they keep maintaining that. Whenever I install any of Symantec's products, the working speed of my computer just gets cut into half. My computers' vitals go like Intel P4 - 2.4GHz, 1GB RAM. So, in a computer of this condition, when I installed the new Norton security suite called the Norton Confidential, it takes about 3-5 secs for Internet Explorer to open, about 2-3 secs for even the My Computer window to be open. So, I guess you get the situation well. This is why Symatec's products always get my hatred. Coming to this beta of Norton Confidential, I guess it is all just looks. Ever since Vista emerged, I guess everyone wants their product to look similar in the sense that they wanna incorporate the details like shading, reflection, shadow and most of all the aqua effect. Judging by the way the installer looks(shown above), I guess Symantec managed to hav...

Microsoft .NET a programmers’ perspective

Image
Let’s see what Microsoft .NET is. Microsoft .NET is an umbrella term that applies to a wide collection of products and technologies from Microsoft. Most have in common a dependence on the Microsoft .NET Framework, a component of the Windows operating system. Microsoft products and components that fall into the .NET category include: The Microsoft .NET Framework, an operating system component required by most .NET products. .NET Passport The .NET Passport is of no importance in the programming context as it involves a free online account by Microsoft allowing you access to evaluation software and some reference material. It works pretty much the same way as the Google Account. It also includes online services like email, chat, etc from MSN and some contests for students referred to as the Imagine Cup and Student Rock star. Recently, the .NET Passport has been replaced by what Microsoft now calls as the Windows Live Account. The Microsoft .NET Framework is a software compon...

In what area does Michigan beat Europe?

The state of Michigan claims more varieties of trees than all of Europe, which are spread over 19 million forested acres - more than half the state.

What is "dd" ???

Google define:dd Definitions of dd on the Web: Indicates the processor position on the processor board. It canbe 00 or 01. publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/iding_processors.htm Default. Securities are not meeting current obligations and are extremely speculative. 'DDD' designates the highest potential for recovery of amounts outstanding on any securities involved. For US corporates, for example, 'DD' indicates expected recovery of 50% – 90% of such outstandings, and 'D' the lowest recovery potential, ie below50%. www.bradynet.com/e417.html common abbreviation of the honorary degree Doctor of Divinity; an honorary degree reserved exclusively for ordained persons, especially bishops. The abbreviation is used after the bishop's full name: The Rt. Rev. John C. Doe, DD saintpauls.org/glossary/d.htm Developmental disability. www.unm.edu/~atr/glossary.html A famous medium in the nineteenth century, Home's many p...

4 Brains in 1

Image
As we may have heard during the elementary computer classes, the processor is the "brain" of a computer... Now, how many brains do we humans have??? I beleive we have only 1. But so happens that nowadays computers have more than one "brains"... This revoloution started with AMD's introduction of a dual-core processor chip... By dual-core we mean two processing units on a single chip working together... It didn't take much time before Intel joined the team "more than one brains" by introducing its own dual core processor chip, called the Intel Core 2 Duo... Now things changes again !!! Intel makes a giant leep for "computer kind" by introducing a quad core chip... That means instead of 2, now there are 4 processing units in a single chip.... That means "4 brains in 1"... This happened a few days ago when Intel announced the release of it's 2 quad-core processors - Quad-Core IntelR XeonR 5300 and Intel Core 2 Extre...

How are California's and Florida's oranges different?

Image
Because of the hot, damp climate, oranges in Florida are thin-skinned juicy fruits; California's drier climate, by contrast, produces thick-skinned, sweet "eating" oranges.

Who were the first six King Charles'?

Image
King Charles VII, who was assassinated in 1167, was the first Swedish king with the name of Charles. Charles VII Sverkersson , or Karl Sverkersson in Swedish was ruler of Gothenland, and then became the king of Sweden from circa 1161 to 1167, when he was assassinated.Strangely, Charles I, II, III, IV, V, never existed. No one knows why. To add to the mystery, almost 300 years went by before there was a Charles VIII (1448-57).