473,396 Members | 2,011 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,396 software developers and data experts.

How to give another starting point for program rather than main?

can there be any another point for programn execution in c. for example in java we can put our code in static block
Jan 25 '11 #1
3 2099
weaknessforcats
9,208 Expert Mod 8TB
By default your C/C++ program starts with main(). However, most compilers let you determine the starting point as a project setting. That way you can start with any function you choose as long as you build with that setting.
Jan 25 '11 #2
How to determine the starting point defination, so that i can edit that andd make another function as main.
Jan 26 '11 #3
weaknessforcats
9,208 Expert Mod 8TB
Again, you can make another function than main() be your starting point but you will need to compile and link with that setting. Read your compiler documentation to see how to do that.

You will not be able to do this by editing the compiled program.
Jan 26 '11 #4

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

Similar topics

2
by: enclume42 | last post by:
Hello, I am a pure Linux guy. I wrote a Java program that is going to be used by some Windows people, and I wish the startup of the program to be as simple as possible, namely to double-click on...
5
by: Guruz | last post by:
hi C gurus do anyone of u know how to write a program in C without main and still create a executable out of it. Remember, I said no main() function not in -->include files -->libraries -->no...
16
by: leeaby | last post by:
Hi, I will appreciate your assistance. Can we write a c code which do not contain main() I have heard that this is possible. Is it really possible? Thanks for your help in advance lee
1
by: Maziar Aflatoun | last post by:
Hi everyone, I have a C#. NET web project called MySite and I like to start working on a new project called MySite2 (Future release of my site) with MySite files as the starting point. What is...
2
by: Brent Borovan | last post by:
Good day, We are at the beginning stages of developing a new product which is essentially a cutomized web application, where users will purchase access and log into our site to use the...
0
by: aurora | last post by:
I have a question regarding code examples in the msdn cd. For example I will refer to the help page titled "Using TCP Services" As we can see, the code below is supposed to be for a console...
0
by: calderara serge | last post by:
Dear All, I am building an application with VB.Net that is starting an external process from my application code by using the process object. The problem I get is that the application that I...
13
by: robinsonreyna | last post by:
Hi everyone Is it possible to write a program which do not have a main() function. The program should compile and run. Please give sample code to do this.
7
by: Peter S. | last post by:
I currently have created a C# program that automatically updates an SQL database once everyday. It's an application that I manually start. I want make it so that if the (Windows 2003) server...
1
by: fmang | last post by:
Hi guys. I'm new to perl programming, but I need to do this task of automating a certain process that involves receiving a file from a mobile phone (coming from either infrared or bluetooth -- the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.