Home Tutorialhelp Comment error =declaration terminated incorrectly

 
 

Comment

Hitesh R. Kansagara
error =declaration terminated incorrectly ,
February 26, 2010 at 1:36 AM

#include <stdio.h>
#include <conio.h>
int mul(int a,int b);
main()
{
int a,b,c;
a=5;
b=10;
c=mul(a,b);
printf("multiplication of %d and %d is %d",a,b,c);
return (0);
} int mul(int x, int y);
{ int p;
p = x*y;
return (p);

}
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Programming Tutorials

C++Tutorials
; The Function Pointer Tutorials Function Pointers provide some... other tutorials, such as C++: Annotations by Frank Brokken and Karel Kubat...; The CPlusPlus Language Tutorial These tutorials explain the C++ language 

C++

C Tutorials
pointers.   C Pointer to a function C... C Tutorials       In this section we have given large number of tutorials on C 

Blog

Site map - C Tutorials
Multiple Indirection | C Pointer to a function | C String Remove Spaces | C...; C Tutorials  | Java Tutorials | PHP Tutorials  | Linux...; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse 

Development process Questions

Function pointer in c
Function pointer in c  What is the difference between function call with function pointer and without function pointer(normal function call 

C Tutorials

C Pointer to a function
C Pointer to a function   ...; function in C. C provides a special feature of  pointer to a function... to a function is the declaration of pointer that holds the base address 

Java Beginners

variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C 

IoC Questions

c-language pointer functions
c-language pointer functions  what is the execution process of character pointer functions with example 

Development process Questions

c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values 

Ajax Questions

Main function parameter in C language - Ajax
Main function parameter in C language  Please let me know how...==NULL) perror ("Error opening file"); else { c = fgetc (pFile...; Hi Friend, int main(int argc, char **argv) The main function serves 

Development process Questions

c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum 

Development process Questions

c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area 

Development process Questions

c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass have? d. Write the definition of the member function func so that u is set to 10 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass have? d. Write the definition of the member function func so that u is set to 10 

IoC Questions

C Concepts
C Concepts  respected sir, Can I use a void ** pointer as a parameter so that a function can accept a generic pointer by reference? I have a function extern int f(int *); which accepts a pointer to an int. How can I pass 

C Tutorials

C Array Declaration
C Array Declaration       In this section, you will learn how to declare an array in C. To declare an array in C, you have to specify the name of the data type and the number 

Java Beginners

null pointer error
pointer error sir please help me my code are given below compilatation class...(Exception c) { System.out.println("error" +c); } } } } class jd { public...null pointer error  Respected sir there is a problem in this code 

Java Beginners

null pointer error
pointer error sir please help me my code are given below compilatation class...(Exception c) { System.out.println("error" +c); } } } } class jd { public...null pointer error  Respected sir there is a problem in this code 

C Tutorials

C Structure Pointer
C Structure Pointer       This section illustrates you the concept of Structure Pointer in C. You... through structure pointer. For that, we declare the structure type st consisting 

Java Beginners

C/C++/JAVA Question on function
C/C++/JAVA Question on function  "Write a function to find out common... other data type also.â?? Question can be solved in C,C++ or JAVA. (Recommneded - C 

C Tutorials

C Multiple Indirection
Indirection. C permits the pointer to point to another pointer. This creates many... to a pointer has declaration is similar to that of a normal pointer but have more... C Multiple Indirection    

Programming Tutorials

C++GraphicsTutorials
C++ Graphics Tutorials     ... in this document is correct. C/C++ Windows programmers who want to learn... MFC.      OpenIL in Dev-C++ OpenIL 

Java Beginners

example of function overriding in c++
example of function overriding in c++  require an example of function overriding in c 

Programming Tutorials

Pointer in C
; inside. The address variable c is 0X3000. And a pointer variable cptr of char data-type. The cptr pointer variable having the address of c variable rather...About Pointer A pointer is a variable which contain the memory address 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  ??Write a function for finding out the occurences of repeated word from a sentence. This function would return an array of duplicate words. 

Java Beginners

function overloading in c
function overloading in c  are int func1(int x, int y) and void func1(int x, int y) overloaded? can the functions with same name same arguments but different return types be overloaded 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  "Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks". For Example : GetHighestLowestMarks{Student{n}, Marks{n}} returns 

Framework Questions

c postfix - Framework
://www.roseindia.net/c-tutorials/index.shtml Thanks...c postfix  q: write a c program to read apostfix expression store... function   Hi Ashraf I am sending a link, where lots of examples 

Java Beginners

null pointer
null pointer  dear sir , what is mean by null pointer in c 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

Framework Questions

C# Error - Framework
C# Error  Please Solve The Following Error & Post Reply Error : ExecuteReader: Connection property has not been initialized. private void... for c# error 

Java Beginners

C Structure
C Structure  Respected sir, Can a structure in C contain a pointer to itself ? if yes means how sir ? plz help me sir 

Development process Questions

C Language
C Language  What's the right declaration for main()? Is void main() correct? in C language ? please help me sir ! Thank You 

Ajax Questions

c#
c#  how to find out the size of the BMP image in C 

CVS Questions

C++
C++  How can i write this in dev c 

Development process Questions

C++
C++  How can i write this in dev c 

Java Interview Questions

c question
c question  How to convert decimal numbers into binary digits without using pow function in c language 

C# Tutorial

C file fgetpos() function
C file fgetpos() function This section demonstrates you the use of fgetpos() function. This function get the current read/write position of stream and stores...() function to return to the same position. Its syntax is: fgetpos(File *stream 

Development process Questions

c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator 

C# Tutorial

bsearch() function in C
bsearch() function in C Programming Language This section demonstrates the use bsearch() function in C. This searches function the given key in the array... the character array. To perform the search, the bsearch() function compares the elements 

C# Tutorial

C file fsetpos() function
C file fsetpos() function This section demonstrates the use of fsetpos() function in C. The function fsetpos() is used to set the position of the stream... from the function fgetpos(). Its syntax is: fsetpos(File *stream,const fpos_t 

Ajax Questions

c#
c#  how to find out the size of the BMP image 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle 

Development process Questions

C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

C Tutorials

C Replace String
C Replace String       In this section, you will learn how to replace a string in C.  Here a function pointer replace is created in which variables st, orig, repl 

C# Tutorial

C file fseek() function
C file fseek() function This section demonstrates the use of fseek() function in C. This function sets the file position indicator for the stream pointed... with an example. In the following code, the function fopen(file, "w" 

Development process Questions

C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Design concepts & design patterns Questions

C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3 

Java Beginners

C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack 

Java Beginners

C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel 

Development process Questions

C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me 

Java Beginners

c program
c program  How to convert binary digits to decimal number without using power function 

Development process Questions

C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon 

Development process Questions

C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d 

Spring Framework Questions

c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed 

CVS Questions

c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k 

UML Questions

C++
C++  . Consider the definition of the following class: class CC { public: CC(); //Line 1 CC(int); //Line 2 CC(int, int); //Line 3 CC(double, int); //Line 4 . . . private: int u; double v 

UML Questions

c++
c++  Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day... on an object of type dayType: a. Set the day. b. Print the day. c. Return the day 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle   #include<conio.h> #include<iostream.h> class rect { int l,b; int area; int peri; public: void get_rect() { cout<<"\n 

Java Beginners

c++
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1 

Development process Questions

c programing
c programing  Write 2 implementations of C's string copy routine, one with a loop and the other using recursion. What is the security risk with this routine? The function should have the signature: char* strcpy(char* destination 

Development process Questions

c programing
c programing  Write 2 implementations of C's string copy routine, one with a loop and the other using recursion. What is the security risk with this routine? The function should have the signature: char* strcpy(char* destination 

Development process Questions

C programming
C programming  i am beginner in C my text book says getchar...) { int c; while((c=getchar())!=EOF) { putchar(c); return 0; } i understand that the use of while loop and EOF function is that input is allowed till ctrl 

Java Beginners

c++ programs
c++ programs  Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type 

Java Beginners

c++ programs
c++ programs  Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type 

IDE Questions

C program
a function to print names of all students who joined in a particular year. (c)Write a function to print the data of a student whose roll number is given...C program  hi, here is my question: Create a structure to specify 

Java Beginners

java & c
java & c  why c language is called top down approach? why java is called bottom to top approach?   In C, compilation stats from the very... the main function; thereafter as the control comes across these data types 

Java Beginners

pointer to a reference
pointer to a reference  pointer to a reference in C++    #include <iostream> using namespace std; void foo1(int& x) { int* p = &x; *p = 123; } void foo2(int* x) { int 

Java Beginners

pointer to a reference
pointer to a reference  pointer to a reference in C++    #include <iostream> using namespace std; void foo1(int& x) { int* p = &x; *p = 123; } void foo2(int* x) { int 

Java Beginners

java equivalent of c function htonl & htons
java equivalent of c function htonl & htons  hi is there any java equivalent for the c function htonl & htons 

iPhone

Objective C
Objective C tutorials. We will be explaining the programming language with easy to learn examples. You will find these Objective C tutorials very useful... Objective C       

XML Questions

C++ - XML
C++  C++ function declarations for : 1) isEmptyList():boolean {query} - determines whether a list is empty 2) getLengthList():integer {query...) C++ function definitions, using the operations declared above: 7 

Design concepts & design patterns Questions

classes in c++
classes in c++  1- design and implement a class datatype that implement the day of the week in the program.the class datatype should store the day... constructors. 2-write the definition of the function to implement the operations 

General

Null Pointer Exception
are same as pointers in C. In C pointer refers to the memory location of variable... Null Pointer Exception        Null pointer exceptions are the most common run time  

Programming Tutorials

Pointer and Structure in C
Description: In this tutorial you will see how pointer is used with structure. This is a very important example because all data-structure program work... the address of object to p *p allow the pointer to access the objects *p.roll is same 

Development process Questions

C,C++
C,C++  Sir, 100&30 gives output 4 in C++ and 100|30 gives output 116 How & and | gives output 4 and 116 

Development process Questions

C,C++
C,C++  int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);   #include<stdio.h> #include<conio.h> void main(){ int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r 

Ajax Questions

C language-qsort and bsearch function - Ajax
C language-qsort and bsearch function  Explain qsort and bsearch function doing examples with character array.please also answer my previous question on main()parameters.thanks.  Hi Friend, bsearch function 

JSP Tutorials

JSTL c:catch with c:if
can invoke a error then we should write those codes inside the <c:catch>...JSTL c:catch with c:if      ... think that it can invoke a error, and still you are confident that you can recover 

Java Beginners

Null reference error in javascript function?
Null reference error in javascript function?  ?° want to use this code but when the page opens, I get a null reference error. When I open the page..., this error doesn't occur. The error comes from tb_show function. My code 

Mobile Applications Questions

@Protocols in Objective C
@Protocols in Objective C  Understanding @Protocols in Objective-C   @protocol in objective c @protocol is the keyword type in Objective C. Which is used to declare a formal protocol. You can find more Objective c 

Development process Questions

all c library functions
all c library functions  hi dear c coders, i need all c library functions with a detailed explanation. Who can give me usefull link? thanks beforehand!   Hi Friend, Please go through the following link: C Tutorials 

SQL Question

C program - SQL
C program  Thank You . Write some C programs using pointers . Write some C programs using files. Please reply me .   Hi Friend, Please visit the following link: http://www.roseindia.net/c 

Java Interview Questions

about c and java
://www.roseindia.net/c-tutorials/ http://www.roseindia.net/interviewquestions...about c and java   i need java and c language interview and objective questions with answers for the fresher.please provide to me   Please 

C Tutorials

C file delete example
if the file will not be deleted, the function perror() prints the error message... C file delete example       This section illustrates you to delete a file in C. You can see 

Java Beginners

help with substring in c programing
help with substring in c programing  Hi I could not found programming in C in the "select category" so I am posting my question in java section. Please help with substring function,prompt the user for two strings and display 

JSP Servlet Questions

Null pointer exception error in Jsp - JSP-Servlet
Null pointer exception error in Jsp  Hi i write a login page. when i validate the login value then the nullpointer exception error is occured. my...; } function validate_fields() { var uid=document.getElementById("userid 

JSP Servlet Questions

Null pointer exception error in Jsp - JSP-Servlet
Null pointer exception error in Jsp  Expert:Majid Hi i write a login page. when i validate the login value then the nullpointer exception error...%; border-bottom: 1px solid #036; } td { padding: .5em; } function 

Java Beginners

c++ - Java Beginners
c++  to write a program to display the elements in different format using single dimensional array with the help of function templates algorithm... using function templates 

Advertisements Advertisements
 

 

 

DMCA.com