User Profile
Collapse
-
waiting for u r reply banfa.......... ... -
yes banfa u r right ....but i hav no time i hav interview on day after tomorrow....so kindly help me.......
pls provide me the answer........
Thanks & Regards.Leave a comment:
-
structure
Hi,
I got selected in one written exam for a software job my next round is on c programming...t hey will ask to write c programs.....th ey sent a sample question for me...its like
An Array named 'DATE_ARRAY' with 'n' elements is present in the
memory. Each element in the array is a structure representing the
'Date' information and its type definition is shown below:
Type def struct Date_st
... -
graphs and trees
Hi,
I am a basic learner in c and datastrustures. ....
I want to know the conepts of trees, graphs...
could u provide me a proper tutorial or a good link which discusses trees and graphs concepts in c language.......
Thanks & Regards. -
-
Pointer is a variable which holds the address of another variable....... ..........
int *p; which means...
1)p is a variable which holds the address of integer variable
(or)
2)p is a pointer points to an integer
so pointer hold the address of a variable accordingly.
Data structure:
the organization of data (and its storage allocations in a computer)
in data structure pointers...Leave a comment:
-
post decrement in while loop
I hav one doubt regarding post decriment,the code in c is as follows........ .....
void main()
{
clrscr();
while(i--!=6)
i=i+2;
printf("%d\n",i );
getch();
}
I know the output is 5, but i read in a book dat the post incriment or decrement operators are evaluated after reaching semicolon(..... but in while condition,the ondition fails so it wont execute the next... -
malloc
Hi,
I hav one doubt....could u pls explainme...
I hav defined the following code in c
int **p;
int *q;
p=(int *)malloc(sizeof (int *));
*p=(int *)malloc(sizeof (int));
**p=12;
q=*p;
....
what s da sizeof p,*p,**p in bytes..........
Thanks & Regards. -
-
nested printfs
Hi,i hav executed the following c code...the inner printf executes first to print some garbage value...why dont the outer printf prints anything.....
I got only one garbage value ..y dont two garbage values...wt is the order of precedence in printf function and in nested printfs.
the c code is:
void main()
{
while(1)
{
if(printf("%d", printf("%d")))... -
Static Function
Hi,
could u explain me the use of static storage class,if it used before a function.....
like ...
static add();
here wts da static storage class does.....and like wise auto,extern,reg ister.
I know the use of them f they r used before a variable...like
static int a;
I want about functions...
and could u tell me a good link to get command on functions,point ers.
Thanks & Regards. -
-
Thankyou BANFA....thanks for your reply.....i am getting new things and i got one more doubt..pls clarify it......
you said....
So what is the value of a in the question?
well a is an array int a[2][3][2] so the expression a returns the value &a[0] which has type int (*)[3][2], this is a pointer to the first item in the array a[2] (&a[0]).
my doubt is....
How the type of a be int...Leave a comment:
-
i was asked this proble in an exam.....
main()
{
int a[2][3][2]={{{2,4},{7,8}, {3,4}},{{2,2},{ 9,3},{3,4}}};
printf("%u %u %u %d\n",a,*a,**a, ***a);
printf("%u %u %u %d\n",a+1,*a+1, **a+1,***a+1);
}
could u explain the solution for above problem......
Thanks & RegardsLeave a comment:
-
Hello friend,
I am a basic learner....i dint understand the words like
.. a has type int (*)[3][2]
a[0] has type int (*)[2]
a[0][0] has type int *
for the above question......
actually what int (*) syntax mean...pls explain the above three statements meanings deeply........Leave a comment:
-
pointers and arrays
can anybody explain me the concept of multi dimensional arrays that deals with pointers in detail....
i hav declared a 3 dimesional array like a[2][3][2]={{{2,4},{7,8}, {3,4}},{{2,2},{ 2,3},{3,4}}};
then
a,*a,**a,***a,a +1,*a+1,**a+1,* **a+1...etc what it means?
can any body explain me how to represent arrays in pointer notation for 3 dimensional arrays
( like in one dimensional arrays &a[1]... -
-
help needed here
hello..can anybody help me..
i cant understood the meaning of *(int *)p=2;
so pls hepl me...wt it actully do....
No activity results to display
Show More
Leave a comment: