2012 at 10:09 PM, SHOBHIT GUPTA
wrote:
> also the keywords like int , long etc cannot be included in macro
>
> On Wed, Sep 5, 2012 at 7:01 PM, Shashank Jain wrote:
>
>> thanks that was a really nice explanation
>>
>> shashank
>>
>>
>> On Wed, Sep 5,
nnot be macros when
> you are compiling C++.
>
>
> Cheers,
> -Bala
>
> “Judge nothing, be happy.
> Forgive everything, be happier.
> Love everything, be happiest.”
> ~Sri Chinmoy
>
>
> On Wed, Sep 5, 2012 at 8:12 AM, Shashank Jain
> wrote:
> > can you pl
can you plz explain how it happens ...as valid macro names must not be key
words.
On Wed, Sep 5, 2012 at 6:24 PM, Shashank Jain wrote:
>
> it works
> thanks for your reply
>
>
>
> On Wed, Sep 5, 2012 at 6:19 PM, Bala wrote:
>
>> #define while(x) while(1)
>>
it works
thanks for your reply
On Wed, Sep 5, 2012 at 6:19 PM, Bala wrote:
> #define while(x) while(1)
>
> Cheers,
> -Bala
>
>
>
> On Wed, Sep 5, 2012 at 7:45 AM, Shashank Jain
> wrote:
> > Here is a question...and i am badly stuck at it
> >
> >
Here is a question...and i am badly stuck at it
how would you get into the loop
int main()
{
while ( 0)
{
printf("hello");
}
return 0;
}
You cannot change the while loop and its condition and you have to print
"hello"
--
You received this message because you are su
Hi,
RBS is coming for internship. How do I prepare fr it, in terms of the
topics asked, In terms of the no. of rounds, whether there is a GD or not?
FYI - they hv already taken e-litmus test fr the interns as well (I hv a
good score).
Shashank Jain
IIIrd year
Computer Engineering
Delhi College
I need to study both space and time complexities. What is the best source?
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogee
me 2
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Wed, Aug 31, 2011 at 4:05 PM, Akash Mukherjee wrote:
> +1
>
>
> On Wed, Aug 31, 2011 at 8:12 AM, arvind kumar wrote:
>
>> Hi
>> Can any1 temme process,questions,exper
@don - how is fgets invoked coz u said we can limit the characters?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Sep 4, 2011 at 3:56 PM, bharatkumar bagana <
bagana.bharatku...@gmail.com> wrote:
> gets is deprecated ... that's why gcc
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, sen
no ppl miss out on hr rounds too!
its d compiler which determines variable size!
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Thu, Aug 11, 2011 at 4:35 PM, sukran dhawan wrote:
> how to determine whether the machine is a 32 bit or 64 bit using a c
> p
what's the book name plz?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Wed, Aug 10, 2011 at 6:41 PM, Pratz mary wrote:
> rs aggarwal
>
> On 10 August 2011 18:32, Shashank Jain wrote:
>
>> what is the best book for aptitude questio
what is the best book for aptitude questions?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegrou
oh yeah, thx karthik.
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Mon, Aug 8, 2011 at 10:29 PM, Shashank Jain wrote:
> int b;
> b=2<<2;
> printf("%f", b);
>
> output: 0.00
>
> plz tell y is dat so?
>
int b;
b=2<<2;
printf("%f", b);
output: 0.00
plz tell y is dat so?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Mon, Aug 8, 2011 at 10:24 PM, Gaurav Menghani
wrote:
> http://lmgtfy.com/?q=Bitwise+left+and+right+shift+operator
thx dipankar, its a gud 1!
Bt tell me wat does '<' and '>' operators do?
eg: 20>2 = 1
can u explain nd wat is this operator called?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Mon, Aug 8, 2011 at 12:54 AM, Dipankar Patro wro
plz sum1 explain me shift left nd shift right operators?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to
ok, i get it now. so like for n bit representation, we can use only (n-1)
bits for values nd 1 is fr sign.
is everything in c stored in binary?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Aug 7, 2011 at 8:19 PM, Yasir wrote:
> @Shashank, You didn
nd moreover after 2's complement its 0111 which is 7 nd not -7. so how?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Aug 7, 2011 at 6:25 PM, Shashank Jain wrote:
> so tell me fr any bit representation, 1st bit is for sign only na?
>
>
so tell me fr any bit representation, 1st bit is for sign only na?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Aug 7, 2011 at 6:03 PM, Yasir wrote:
> 8 bit was taken just for example. It can be 16/32 bit but that won't
> make any difference o
y r we taking 8 bit numbers, i mean dat way we cant go beyond -127 to 127?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Aug 7, 2011 at 5:39 PM, Yasir wrote:
> let say a=6; binary= 0110
> b = ~a = 1001
> Now when you print value o
bitwise complement operator (~), complements d digits of d input bt when i
use it :
int a,b;
b=~a;
output: its giving o/p such that b= -a-1;
why is dat so?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
--
You received this message because you are subscribed to
what kind of puzzles?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sun, Aug 7, 2011 at 12:34 PM, saurabh singh wrote:
> I said also,.that is during the interviews puzzles were asked
> I am telling the experiences of my friends.I was out in r
*sizeof* is compiler and processor dependent for reasons of both
architectural limitations and efficiency.
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 6:52 PM, Shashank Jain wrote:
> sorry i read it wrong. u are right!
>
>
> S
sorry i read it wrong. u are right!
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 6:51 PM, Shashank Jain wrote:
> dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable
> shows 4 bytes only. So how is dat possible a
dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable
shows 4 bytes only. So how is dat possible acc. to what u said earlier?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Thu, Aug 4, 2011 at 7:33 PM, Ashish kumar Jain wrote:
> Just check
10th aug
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 6:37 PM, arvind kumar wrote:
> @sameer:When is GS visitin ur coll??
>
>
> On Sat, Aug 6, 2011 at 4:17 PM, sameer gupta wrote:
>
>> Delhi College Of Engg
>>
&
i dont understand the diff btw dem, could u plz elaborate?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 12:32 AM, Kamakshii Aggarwal
wrote:
> in case of 64 bit,
> size of second structure will also be 16 not 8
>
>
> On Fri,
sagar - i dint get u, d code thing!
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 2:31 AM, sagar pareek wrote:
> yup exactly
>
> On Sat, Aug 6, 2011 at 1:51 AM, Piyush Kapoor wrote:
>
>> I think it is because the numbe
could u give some examples shiv fr string manipulation?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Sat, Aug 6, 2011 at 1:57 AM, shiv narayan wrote:
> i have seen plenty of questions on string manipulation and bits
> operations asked in various com
whats the priority of ^ symbol?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Thu, Aug 4, 2011 at 1:52 PM, Arun Vishwanathan wrote:
> there are 12 black and 12 white socks
> p(bb)+p(ww) is what we want...
>
> p(bb)=12/24*11/23
> p(ww)=12/24*
man this is too big of a page to go thru...
so tell as both (OS nd pro) are 64 bit why is ptr size 4 bytes?
nd also does it depend on all 3 : OS, processor, compiler ?
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Thu, Aug 4, 2011 at 11:57 AM, Dipankar Patro
even this is a gud 1.
http://www.cprogramming.com/tutorial/bitwise_operators.html
Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering
On Thu, Aug 4, 2011 at 1:35 AM, Samba Ganapavarapu wrote:
> thanks raj,
> is this the bitwise operator tutorial that you told
see dipankar, i hv 64 bit OS nd processor bt i dont know abt the compiler.
nd yeah size of int is 4 bytes. so tell me where im interpreting wrong?
Shashank Jain
3rd year, Computer Engg.
Delhi College of Engineering
On Thu, Aug 4, 2011 at 11:16 AM, Dipankar Patro wrote:
> This has been a
tush, u hv ny idea dev c uses which compiler?
Shashank Jain
3rd year, Computer Engg.
Delhi College of Engineering
On Thu, Aug 4, 2011 at 10:38 AM, Tushar Bindal wrote:
> never assume that he compiler is same as the OS you run. it may be that you
> are running a 32-bit compiler
>
the size of a pointer is showing 4 bytes in my 64-bit OS, which should have
been 8 bytes. Correct me where i am wrong?
Shashank Jain
3rd year, Computer Engg.
Delhi College of Engineering
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks"
@sandeep, i dint get what do you mean by simulate here, as in an example wud
be gud.
Shashank Jain
Delhi College of Engineering
On Wed, Aug 3, 2011 at 11:34 PM, Sandeep Jain wrote:
> I'd say C language is a truly call-by-value language. C++ supports
> call-by-reference.
> Howev
we can use sortedset .Filling the array enteries in sortedset .
as sorted set doesnt allow duplicate entries
duplicate can be find out
do its works???
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to al
there are 2 unsorted array we have to want a third array in sorted
form in mininmum time complexicity
answer can like be this merge the two array in 3rd array then sort the array
or
sort the individual array and then merge
if feel first one is better
can any one can he
39 matches
Mail list logo