physics chemistry maths science forums
become expert I help I sign up I login
refer a friend - earn nickels!!   
 advanced
 
Home
Ask & Discuss Questions
Study Material
Experts Zone
Hang Out!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: Computer Science....BOARDS.....PRACTISE...........
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
heres another

#include<iostream.h>
#include<conio.h>
void main( )
{
    char string[ ]="Pointers and strings";
    cout<<*(&string[2])<<endl;
    cout<<string+5;
    cout<<'\n';
    cout<<*(string+3)<<"\n";
}


Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
punnima (563)

Blazing goIITian

Olaaa!! Perrrfect answer. 89  [148 rates]

punnima's Avatar

total posts: 438    
offline Offline
i
ers and strings
n

VARSHA KRISHNAN....
------------------------------------
IIT is always a word which rises E thru' d body. But 2 achieve it U hav 2 drain out d entire E out of the body....

 this reply: 2 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
not the rite ans. but quite close

Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
punnima (563)

Blazing goIITian

Olaaa!! Perrrfect answer. 89  [148 rates]

punnima's Avatar

total posts: 438    
offline Offline
edited my reply

VARSHA KRISHNAN....
------------------------------------
IIT is always a word which rises E thru' d body. But 2 achieve it U hav 2 drain out d entire E out of the body....

 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
edited ones rite. gr8 goin

Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sneha.bagri (142)

Blazing goIITian

Olaaa!! Perrrfect answer. 24  [35 rates]

sneha.bagri's Avatar

total posts: 378    
offline Offline
edited
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
@sneha, its

i
ers and strings
n

Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sneha.bagri (142)

Blazing goIITian

Olaaa!! Perrrfect answer. 24  [35 rates]

sneha.bagri's Avatar

total posts: 378    
offline Offline
could u xplain how ???

plz.............
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
cout<<*(&string[2]) will print string[2], the third character, which is i
cout<<string+5 will print everythin after string[5]
cout<<*(string+3) will print string[3], which is n

Orkut Graphics - Angels
 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
sneha.bagri (142)

Blazing goIITian

Olaaa!! Perrrfect answer. 24  [35 rates]

sneha.bagri's Avatar

total posts: 378    
offline Offline
thanks i thought it wrong.............
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
void main( )
{
    int a[ ]={10,15,20,25,30};
    int *ptr;
    ptr=a;
    int i;
    for(i=0;i<5;i++)
       cout<<*(ptr+i)<<" ";
    cout<<endl;
    for(i=0;i<5;i++)
       cout<<*ptr+i<<" ";
}


Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
anybody there?

Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sugargal_anu (169)

Hot goIITian

Olaaa!! Perrrfect answer. 31  [38 rates]

sugargal_anu's Avatar

total posts: 135    
offline Offline
no 1 interested in practicin outputs?

Orkut Graphics - Angels
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
sneha.bagri (142)

Blazing goIITian

Olaaa!! Perrrfect answer. 24  [35 rates]

sneha.bagri's Avatar

total posts: 378    
offline Offline
d output is:

10 15 20 25 30
10 11 12 13 14
 this reply: 2 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
anu122 (7)

Cool goIITian

Olaaa!! Perrrfect answer. 1  [2 rates]

anu122's Avatar

total posts: 34    
offline Offline