I need it as a nested one.
#include<stdio.h>
struct class
{
int number;
char name[20];
float marks;
Type: Posts; User: justine
I need it as a nested one.
#include<stdio.h>
struct class
{
int number;
char name[20];
float marks;
#include<stdio.h>
struct class
{
int number;
char name[20];
struct jow
{
int num;
char word[10];
};
Okey.
I was checking the action of each function:
#include <stdio.h>
using namespace stdin;
int main()
{
char ch;
printf("Press ant key to continue\n");
getch();
laserlight
For doing exercise in my book.
qny
aware of that, qny
getch(), putch(), etc
Thank you.
PS:In gcc no conio.h, what is the alternative?
#include <stdio.h>
int main()
{
char a[]="Hello";
while (*a!='\0')
{
printf("%c", *a);
a++;
}
return 0;
Thanks laserlight
So there is other thing with name array of structers?
Here what is the use of "s", I think s[0] is the base address.
Edit: Nope 's' is, How did that happen. Is it two dimensional?
Ok this is working
#include <stdio.h>
int main()
{
struct
{
int x, y;
}s[]={
{10, 20},
{15,25},
{8,75},
It is Let Us C by YPK. But I thing it is not specifying that it will be contiguous, but during a program for showing the increase of memory location by one it point to the next location of its type,...
*(1+i)**(i+4)/*i
(*(s+*(i+1)/*i)).x+2
It is not rejecting, but gives warning.
printf("%p, %p, %p\n", (void*)&i, (void*)&j, (void*)&k);
#include <stdio.h>
int main()
In my book a question is like below:
Match the following with reference to the following program segment:
struct
{
int x, y;
}s[]={10, 20,15,25,8,75,6,2};
int *i;
i=s;
Ok, Thank you.
Thank you, got it.:)
Can you please explain it? You said the book is wrong, or it may be because of my 32 bit compilar?
But this code working:
#include <stdio.h>
struct book
{
char name[6];
float price;
int pages;
#include <stdio.h>
int main()
{
int i=3;
float j=1.5;
char k='c';
printf("%u, %u, %u\n", &i, &j, &k);
return 0;
}
#include <stdio.h>
struct book
{
char name[5];
float price;
int pages;
};
void display (struct book);
void displa (struct book *$b234234234);
Thanks, that is clarified. :)
#include<stdio.h>
int main()
{
struct address
{
char phone[15];
char city[25];
int pin;
};
struct emp