answersLogoWhite

0


Best Answer

C does not define a setpixel() function; it is a non-standard function. C is intended for general-purpose programming but graphics handling is system-specific. There are third-party libraries available to cater for graphics handling (many of which are generic) but without knowing which library you are using nor on which platform, it would be impossible to demonstrate a setpixel() function in any meaningful way. Best advice is to consult the documentation that came with your graphics library.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Example program for setpixel function in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you call an external function or program that is written in different programming language?

It doesn't matter what language the external program or function was written in since all executables must be converted to machine code. To execute an external function, that function must reside in a library to which your program is linked and you must know the prototype of the function you intend to call. This is usually found in the library header file which can simply be included in your program. You can then call the external function just as you would an internal function. To execute a specific function in another program, however, you must use the command line interface for that program.


Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


How can a person write a program without using printf function in C language?

Here is an example:#include int main (void){puts ("Hello, world");return 0;}


What is language migrator?

language migrator makes a program compatible to all the operating systems. For example a program written in windows can run in linux using language migrator.


Can you use more than one function in c language?

Yes And even in the same program!


How to type a program for a function?

In C++ functions are lines of code that make up the workings of a program. A function can voluntarily change input parameters that permit informers to pass coding dialogued arguments into the function. A function can voluntarily return a value as output. If you know the C++ coding language, here is and example of a function: //FUNCTION EXAMPLE using namespace std; int addition (int a, int b) { int r; r=a+b; return r; } int main () { int z; z = addition (5,3); cout << "The result is " << z; }


What is the meaning of statement missing in function main in c language?

Every C program must have a function, named main(), which is where the program starts execution. If there is no function main(), the computer does not know where to start running the program. The function main() must also do something; if it is just empty, some smarter compilers will note that there is nothing for the program to do, and will give this sort of error message to indicate that you forgot to tell the program what to do.


What language used orthogonality as a primary design criterion?

LIPS a functional language is one in which computations are made primarily by applying function to given program


What is the difference between compiler and program?

A compiler is actually a program. However the function of a compiler it to take a programmers high level language code and render this as binary machine language instructions that a specific processor can execute.


A c program to call a function without using function name?

It can be done via its address, for example: void function (void (*callback)(void)) { (*callback)(); }


What has the author Ellie Quigley written?

Ellie Quigley has written: 'PHP and MySQL by example' -- subject(s): Design, MySQL (Electronic resource), PHP (Computer program language), Web databases, Web site development 'Complete PERL Training Course, The' 'Unix Shells by Example (By Example)' 'PERL by example' -- subject(s): Perl (langage de programmation), Perl (Computer program language), Langage programmation, PERL 'JavaScript by example' -- subject(s): JavaScript (Computer program language) 'JavaScript by Example'


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics