C class

9 views
Skip to first unread message

Siddharth Mohan Misra

unread,
Mar 23, 2012, 6:22:13 AM3/23/12
to c_extr...@googlegroups.com
There is C class on Friday 23rd March 2012 in LT-1 from 6:00 pm sharp.

Note: Venue is LT-1.

--
Best regards,
Siddharth Mohan Misra.

Yogita Garg

unread,
Mar 29, 2012, 7:44:03 AM3/29/12
to c_extr...@googlegroups.com
hey, what was the C compiler that can run C on windows 7 64-bit?

VISHAL JAIN

unread,
Mar 29, 2012, 8:44:40 AM3/29/12
to c_extr...@googlegroups.com

well u can go for gcc or codeblocks.....u can get both of them on dc




--
Vishal Jain
Undergraduate 1st Year
Mechanical Engineering member
Workshops and Guest Lectures ,Quark 2012
Departmentment of Finance and Asset management,
Bits Pilani K.K.Birla Goa Campus

DHRUV KUMAR

unread,
Mar 29, 2012, 8:46:45 AM3/29/12
to c_extr...@googlegroups.com
gcc, can download from ftp://10.1.1.224 under windows/utility

AMAN BHALLA

unread,
May 6, 2012, 10:34:34 AM5/6/12
to c_extr...@googlegroups.com
i hav 1 doubt in c.p.
#include<stdio.h>
main()
{
int c=sizeof(int);
printf("size of int = %d\n",c);
int a[2][2]={1,2,3,4};
int i;
for(i=0;i<4;i++)
{
printf("%d\n",*(a+i));
}
}
and output is:::
size of int = 4
2434340
2434348
2434356 
2434364
why difference of 8 is cmg wen size of int is 4?????
plz reply 2 it...! 

Rohit Bhattacharya

unread,
May 6, 2012, 10:43:47 AM5/6/12
to c_extr...@googlegroups.com

don't u need to declare a pointer value..u have taken a[][] as an int type..thn how r u givin it *(a+i),
commnt on it...may be i don't know smething abt that but i think you need to define a separate pointer variable

Siddharth Mohan Misra

unread,
May 6, 2012, 10:49:32 AM5/6/12
to c_extr...@googlegroups.com
for(i=0;i<2;i++)
        for(j=0;j<2;j++)
            printf("%d\n",(*(a+i)+j));

I guess this is wat u r trying to do....

if u will say a+i it will jump from

Siddharth Mohan Misra

unread,
May 6, 2012, 10:50:25 AM5/6/12
to c_extr...@googlegroups.com
I guess this is wat u r trying to do....
if u will say a+i it will jump from one row to the other..
that is y it will give 8 as the diff in address and not 4.

Rohit Bhattacharya

unread,
May 6, 2012, 10:51:52 AM5/6/12
to c_extr...@googlegroups.com
 
@siddhartha===
          but doesn't he need to specifiy a pointer declaration...now i m gettin confused

Siddharth Mohan Misra

unread,
May 6, 2012, 10:57:28 AM5/6/12
to c_extr...@googlegroups.com
a[i][j]

here a is a special kind of pointer..
u dont need a separate pointer when you are working with arrays...

go through Let us C by Yashwant Kanetkar.. It is there on DC...
all your doubts will be cleared...
Reply all
Reply to author
Forward
0 new messages