answersLogoWhite

0

// a complete C program without using any operators

int main() {

return 0;

}

// a non-useless program, which accepts a single command line argument and

// prints whether or not the first character is a vowel

int main(int argc, char** argv) {

if(argc != 2) {

return 1;

}

switch(argv[1][0]) {

case 'a':

case 'e':

case 'i':

case 'o':

case 'u':

printf("vowel\n");

break;

default:

printf("not vowel\n");

}

return 0;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Can you write a program without main in c?

Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.


Can you write a C program Without turbo C IDE?

Yes you can write a C program without using turbo C IDE. All you need is a text editor like notepad where you can write your codes and after writting them save the file with .c extension. But for compilling and running the code you will be needing turbo C IDE.


Is it possible to write a C program without using preprocesser directives?

Technically yes, practically no.


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


Write a c program for creating a virus?

a c program for creat a virus


Write c program to print palindrome using string without using strrev strlen strcam?

sdfdg


How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


Where do we write main function in a c program?

Into the source program.


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


What is the importance of functions in a c plus plus program?

Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.


Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


How do you write a c program to analysis a circuit?

There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).