473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What is the meaning of "statement missing" in turbo c program

meaning of statement missing in turbo c program
Feb 1 '14 #1
4 14732
It must be u would not had written semicolon ( ; ) before
Feb 1 '14 #2
hi sandytayag021
place your code here.
There might be possibility of missing (;) any many place.

happy coding..
Feb 7 '14 #3
rukmin
1
#include<stdio.h>
struct node
{
int data;
struct node*next;
};
typedef struct node node;
node *start==NULL;
node* create();
void display();
node* getnode();
int main()
{
int n;
node *list
node *list1=NULL,*list2=NULL;
printf("create list1 ");
list1=create();
printf("create list2");
list2=create();
printf("displaying the list1");
display(list1);
printf("displaying the list2");
display(list2);
return 0;
}
node* getnode()
{
node *newnode=(node*)malloc(sizeof(node));
printf("enter data into node");
scanf("%d",newnode->data);
newnode->next=NULL;
return newnode;
}
node*create()
{
int n,i,;
printf("enter no of nodes to enter");
scanf("%d",&n);
newnode=getnode();
for(i=0;i<n;i++)
{
if(start==NULL)
{
start=newnode;
}
else
{
temp=start;
while(temp->next!=NULL)
{
temp=temp->next;
temp->next=newnode;
}
return list;
}
node*display(list)
{
node*temp;
temp=start;
if(start==NULL);
{
printf("empty list");
}
else
{
while(temp!=NULL)
{
printf("%d->",temp->data);
temp=temp->next;
}
printf("x");
}
}
May 14 '17 #4
donbock
2,426 Expert 2GB
Please start your own thread rather than hijackng this 3-year-old thread.
Describe your question or problem - it may be different from that of the old post.
Please use CODE tags around your source code -- this preserves indentation and provides line numbers.

I did notice near the beginning of your code that
node *start==NULL;
Should be
node *start=NULL;
May 15 '17 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: John Cho | last post by:
/* This program is a database program that will store video tape names, minutes, year released, and price I want it to be professional so that *YOU* will want to buy it and use it for a video...
5
by: titan0111 | last post by:
#include<iostream> #include<iomanip> #include<cstring> #include<fstream> using namespace std; class snowfall { private: int ft;
10
by: Protoman | last post by:
Could you tell me what's wrong with this program, it doesn't compile: #include <iostream> #include <cstdlib> using namespace std; class Everything { public: static Everything* Instance()
6
by: PengYu.UT | last post by:
Hi, I couldn't see what is wrong with the following program. Would you please help me? Thanks, Peng g++-3.4 -MM -g main.cc .dep
0
by: Christian Blackburn | last post by:
Hi Gang, Without running a program on a system without any version of .NET and seeing what error message it gives, is there an easy way to tell what version of .net a program was written in? ...
12
by: broli | last post by:
#include<stdio.h> #include<stdlib.h> struct point { double x, y, z;
5
by: pereges | last post by:
#include <stdio.h> #include <stdlib.h> #include <stdio.h> #include <stdlib.h> int main(void) { FILE *fp; int i, n;
6
by: bbmmzz | last post by:
Here is my program: int main() { int ival; while(cin >ival, !cin.eof()) { if(cin.bad()) return 0; if(cin.fail())
3
by: alireza6485 | last post by:
I run the following code Code: int i; int j=2 i=j+3 int k=i/2 k++ k=i*j+1
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.