thanks for the suggestions.. I'll do my best in the finals.. wish me luck..
Type: Posts; User: princez90
thanks for the suggestions.. I'll do my best in the finals.. wish me luck..
#include <stdio.h>
#include <conio.h>
void fun(int , int*);
int main(void){
int a, i;
int x = 100,y = 200, z = 300;
int myArr[] = {18,22,3};
int *ptr1, *ptr2;
ptr1 = &y;
ptr2 = &z;
hi!
I would like some suggestions on which site provides good c programming exercise with answers.. What is the best way to study c programming? ;)
it's okay.. i knew it already.. the error is because i didn't use a header file for malloc.. it's #include <malloc.h>.. :)
what's wrong with this coding?
#include <stdio.h>
#include <conio.h>
typedef struct node{
int num;
struct node *link;
}NODE;
so, p = 0??
using this program,
int num[5] = { 3, 4, 6, 2, 1 };
int* p = num;
int* q = num + 2;
int r = &num[1];
does it mean p will return 3? what will *p return as? will it be 3 also?
and another thing.. what the different if i printf p and i printf *p ? pointer is really hard for me..
if the code is like this
[code] int* p = &ary[3] [\code]
what does the '&' stands for? why some other does not have the '&'?
It's ok.. at least i still understand.. it do help me though.. :D
i don't really understand how to read pointers.. what does it really represent?
for example
int num[5] = { 3, 4, 6, 2, 1 };
int* p = num;
int* q = num + 2;
int r = &num[1];
thanks for all your help.. I'll give it a try.. ;)
i don't quite understand.. i intended to make the input an integer only.. do you mean that the computer will display a binary no matter what?
yes.. but for example, changing octal to binary, i'll be dividing the numbers in ocatl with the number 2.. The remainder will be taken as the answer.. But it will be taken from down to up.. If i'm...
i need to build a program to convert
• Binary-to-Octal, Octal-to-Binary.
• Binary-to-Hexadecimal, Hexadecimal-to-Binary.
• Decimal to Binary and Hexadecimal.
• Binary, Hexadecimal, Octal to...
I have great problems regarding string. Can anyone give me any good sites that I can surf to help me understand string. I'm confused. :confused: Whats the difference between printf, scanf, gets,...
thanks..
u guys helped a lot..
printf ("Title >");
fflush(stdin);
scanf ("%s", ctlg[x].title);
printf ("Title :%s \n", ctlg[i].title);
i've typed the program above to do a program on library catalog. When I...