---
title: "How to create a function in c  ?"  
description: "How to create a function in c  ?"  
author: "Anonymous User"  
published: 2013-06-13  
updated: 2013-06-14  
canonical: https://www.mindstick.com/forum/1065/how-to-create-a-function-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# How to create a function in c  ?

Hi,\
I want to create [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) in [C++](https://www.mindstick.com/blog/745/array-in-c-plus-plus), but how? Can you help me to do this?If possible then provide line of code.\
Any help would be amazing thank you!

## Replies

### Reply by AVADHESH PATEL

Try as following:\

```
class myclass{public:show( );};myclass:: show(){cout<<"In function\n";}
```


---

Original Source: https://www.mindstick.com/forum/1065/how-to-create-a-function-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
