2260

Enter "Paper ID, Question Number" in subject line for query! Start a new thread for every question.

Moderators: karthrags, arun_kumar, CS Moderators Team

2260

Postby MonikaD » Sun Jan 20, 2013 6:56 pm

Just for the sake of clarification , all 1's and 0's are not allowed in host Id. But they are allowed in subnet id, ryt?

Q.30 => Why wont control enter in to for loop? :S
MonikaD
Gatementor Resident
Gatementor Resident
 
Posts: 353
Joined: Mon Jul 16, 2012 12:18 am
Currently what are you doing?: Am Studying
My College/Company:: IISC Bangalore
Roll Number: 0
City: Mumbai

Re: 2260

Postby Nazia2013 » Sun Jan 20, 2013 8:32 pm

entering in loop but due to all the 10 times if condition becoming false so no output !
A loving heart is the beginning of all knowledge.
User avatar
Nazia2013
Gatementor Regular
Gatementor Regular
 
Posts: 265
Joined: Tue Sep 11, 2012 11:41 am
My College/Company:: N
Roll Number: 9999999

Re: 2260

Postby zealdeal » Sun Jan 20, 2013 9:06 pm

Nazia2013 wrote:entering in loop but due to all the 10 times if condition becoming false so no output !



Why would if condition evaluate to false? *ptr points to the character '0', which has ascii value of 48.
zealdeal
 
Posts: 57
Joined: Fri Dec 14, 2012 8:16 pm
Currently what are you doing?: Am Working
My College/Company:: HP
Roll Number: 12125080
Packages: Correspondence+Test Series
City: Bangalore

Re: 2260

Postby Nazia2013 » Sun Jan 20, 2013 9:48 pm

it is 0 not '0' !
A loving heart is the beginning of all knowledge.
User avatar
Nazia2013
Gatementor Regular
Gatementor Regular
 
Posts: 265
Joined: Tue Sep 11, 2012 11:41 am
My College/Company:: N
Roll Number: 9999999

Re: 2260

Postby MonikaD » Sun Jan 20, 2013 9:57 pm

What about first doubt?
MonikaD
Gatementor Resident
Gatementor Resident
 
Posts: 353
Joined: Mon Jul 16, 2012 12:18 am
Currently what are you doing?: Am Studying
My College/Company:: IISC Bangalore
Roll Number: 0
City: Mumbai

Re: 2260

Postby moiezg123 » Sun Jan 20, 2013 10:28 pm

@Monika: First question - Yes, that's true.
Could you post the second question?
Isn't she pretty, this lass? :D:P
User avatar
moiezg123
Gatementor Guru
Gatementor Guru
 
Posts: 1193
Joined: Wed Sep 21, 2011 4:35 pm
Currently what are you doing?: Am Working
My College/Company:: TCS
Roll Number: 111111
Packages: Previous Student
City: Gurgaon

Re: 2260

Postby amitmandal03 » Mon Jan 21, 2013 8:08 am

Nazia2013 wrote:it is 0 not '0' !

absolutely correct !
~Amit
User avatar
amitmandal03
Gatementor Guru
Gatementor Guru
 
Posts: 1539
Joined: Sat Sep 22, 2012 3:19 pm
Currently what are you doing?: Am Studying
My College/Company:: GATE
Roll Number: 0
City: Bangalore

Re: 2260

Postby MonikaD » Mon Jan 21, 2013 9:20 am

Msg: Sorry, the board attachment quota has been reached. :(
MonikaD
Gatementor Resident
Gatementor Resident
 
Posts: 353
Joined: Mon Jul 16, 2012 12:18 am
Currently what are you doing?: Am Studying
My College/Company:: IISC Bangalore
Roll Number: 0
City: Mumbai

Re: 2260

Postby amitmandal03 » Mon Jan 21, 2013 10:34 am

MonikaD wrote:Msg: Sorry, the board attachment quota has been reached. :(

:D what kinda problem is this :D
~Amit
User avatar
amitmandal03
Gatementor Guru
Gatementor Guru
 
Posts: 1539
Joined: Sat Sep 22, 2012 3:19 pm
Currently what are you doing?: Am Studying
My College/Company:: GATE
Roll Number: 0
City: Bangalore

Re: 2260

Postby moiezg123 » Mon Jan 21, 2013 5:17 pm

DOS attack, I reckon. ;-)
Isn't she pretty, this lass? :D:P
User avatar
moiezg123
Gatementor Guru
Gatementor Guru
 
Posts: 1193
Joined: Wed Sep 21, 2011 4:35 pm
Currently what are you doing?: Am Working
My College/Company:: TCS
Roll Number: 111111
Packages: Previous Student
City: Gurgaon


Return to CS Paper Question

Who is online

Users browsing this forum: No registered users and 3 guests
cron