still i cannot understand different between test1(int p) and test2(int& p).
what is the different between int p and int& p which are passing as arguments
Type: Posts; User: rukshan
still i cannot understand different between test1(int p) and test2(int& p).
what is the different between int p and int& p which are passing as arguments
output :test - 2
test1 - 2
test2 -2
Answer one is according to pointer Arithmetic .I can understand that.
Answer 3 is according to normal integer passing.What i think...
below is my testing code.in here test will take a pointer as argument.but what is the different between test1 and test 2.both take integers as argument.i cant understand different between them.thank...
there is a different but i cannot understand.please someone help me with the explanation
lets take method test which returns int
int test(int * p);
int test(int& p);
please can someone explain the different between above two stateme
give me some link to reffer
for my project i need to implement brk() system call.Is there any C/C++ code to implement that?please this is really urgent?
Thank you
i searched but i couldn`t find a good one.There are some jvm s with lots of code files which are not that much simple.please some body help.
hi,
i need a very simple jvm for my project(porting a jvm on a micro-kernel).for testing purpose it should be very simple.i mean the jvm.As a example a jvm which can run very simple java hello...
hope i got the answer .Thanx every one.
actually this is my original problem.when i use scanf
int x
scanf("%i",&x);//here we use &x as pointer to x
but for below example
what is that mean can you explain it using a example .
thanx memcpy.Then somebody can tell me how to print "a" variable`s address.(where "a" located ? i mean not a[0] just variable "a")
please sombody help me
hi,
this is my simple code
#include<stdio.h>
int main()
{
char a[10];
hei thank you soooo much .i fixed it out
when i compile the code i get this error
strlen.c:4:5: error: conflicting types for ‘strlen’
strlen.c:13:5: error: conflicting types for ‘strlen’
...
thanx mr shashikumar.i jst saw it.i found it.any way thank you very much for the response.hope you l help in future also.
ok i found it.i included here string.h.it has same method called strcat().im new to C.i didnt know that.then i changed strcat to another name now it comp[iles properly.may be some newcommer like me...
please sombody help me
i wrote programme to concatenate two strings.when i compile it it gives error:conflicting types for 'strcat'.please some body help me to solve it.
my code is
#include<stdio.h>...
thank you very much MR.fader.i got it.thanx again
finally i found it.its about <string.h>.thank you mr salem for the help.
i changed the code as follow.but it remains(i change '\0' to'\n').please some body help me.
#include<stdio.h>
#define MAX 100
int strlen(char s[]);
main()
{
char s[MAX];
int c;
...
thank you mr salem .in c programming languages book by kerninigan and ritche it says every string is array a of characters.so in their example is like this(to find length)
int strlen(char s[])
{...