Feb 20, 2009

SUN quiz

Here's your first look at a range of new and exciting benefits available only to Sun Developer Network members. Lots of free training being offered this quarter. Just another example of how your all access Backstage Pass from Sun is working for you.

SDN Quiz Sweepstakes — Test your NetBeans IDE Knowledge 
Take the SDN Quiz to see how much you know about NetBeans IDE. Answer the questions correctly for a chance to win one of 50 free service requests (single instance) through the Developer Expert Assistance Program (US $49) 
Take the quiz now! 

New Features in Project Kenai! 
We've been busy worker bees building additional features in Project Kenai. We're rolling out SCM support for a directory file system for your download area, and Atom feeds for your wikis. Use your SDN credentials to log in. Want to host an open source project at Kenai? Please send an invitation request e-mail to: kenai-admin@sun.com. Also look at auto insurance for teenagers

C ptrs

Ptr
Ptr2ptr
Void ptr
Fn ptr
Void ptr fn (not like void ptr)
Pointer to an array
Array of ptrs
 

 Int *p;

 There will be a memory space reserved for 2 bytes which can store address of integer type.

 &p represents address of the pointer variable. Mostly we won’t use this..

P = &somevariable

That Is P will gives the address of the variable it points to.

*p= some value , will make somevariable to assign some value.

 We can have **p ,***p,****p so on…

 Always p can hold some address of int type…

 Int in int *p implies the somwvariable value is of int type…

 Char in char *p implies somevariable value is of char type…

 Void in void *p implies the somevariable can be of any type.. it is known only at run time…

 We can also have pointer functions…

 Consider a function int p(int a) that returns ‘a’ value

Int (*ptf) (int) = &p; // the braces are mandatory…

 also we can call like ptf = p;

 We can invoke the function by 2 way..

 P(2);

(*ptf) (2);

 Both will return 2 as output.

 
these thing will work fine in laptop memory

sample program

# include

# include

 

 void func1(int (*a)[10][10])

{

printf("%d  ",a);

}

void func2(int a[][][])

{

printf("%d",a);

}

 

 

int main()

{

int a[10][10][10],b[10];

printf("%d   ",a);

func1(a);

func2(a);

 

getch();

return 0;

}

 




Feb 2, 2009

Discovering the best of Europe

Europe offers some of the world’s most exciting cities, romantic landscapes, outstanding museums, historic sights, culinary creations, and architectural wonders. You can sail past decaying palaces and sinking churches on Venice’s Grand Canal for the price of a bus ticket. You can drain creamy mugs of Guinness while clapping along to traditional Celtic music on a pub-crawl through Dublin. You can splurge on a 5-star meal in Paris, the Mecca of haute cuisine. Or you can wander through the Tower of London, ground

Zero for so much English history over the last 900 years. You may want to stare for hours at the famed scene of God Creating Adam on Michelangelo’s Sistine Chapel ceiling in Rome. Or sit atop Switzerland’s Schilthorn Mountain, surrounded by peaks covered with

snow and glacier-filled valleys, while eating breakfast in a revolving restaurant at 10,000 feet. Or enjoy a picnic lunch on the Greek island of SantorĂ­ni hundreds of feet above the Mediterranean amid the ruins of a Mycenaean city. Europe is yours to discover and experience. Dont ever forget to visit at extended stay hotels there...