hi,
i m a beginner in C & i hav a doubt regarding structures.
the code i tried is:
/* code beginning */
struct s{
int i;
char c;
}m = {1,'A');//if any syntax errors... sry
main() {
struct s *p;
printf ("%d, %c, %d\n", *p, p->i);
}
/* code end */
o/p: 1 A 1
/***********************/
my doubt...
hi,
as per my knowledge goes i m answering........
here in pgm, in do (c = ..) u hav used fgetc once which will get the character pointed by f1 & thats printed using printf.but again in while(fgetc ...) u r getting char but not printing it & when control goes back to do(..), its getting char...
hi,
there is no standard library function for itoa(reverse of atoi).
but u can get code for itoa function in k & ritchie text
book on C.try converting that code to c++ & use it.
i think it may help u out...
hi friends,
i hav just started learning c++.i hav a pgm in C.but i don't know how to do the same in c++.so, can anyone help me out??????
the pgm in C is:
main () {
char s[10] = "GOOD";
printf ("%s, %u, %u\n", s, s, "GOOD");
}
o/p:
GOOD, 1324568(addres...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.