answersLogoWhite

0


Best Answer

//C++ program to abbreviate first and middle name

#include

#include void main(void) { char name[40]; char abname[30]; int i,len,m=1,j=0; //puts is used to print string of characters //although cout is equivalent to it but gets //and cout should not be mixed in one program puts("Enter Name: "); //gets is used to take string input with spaces gets(name); //strlen is a built-in function, declared in //the string.h header file //it returns the length of a string len=strlen(name); abname[j++]=name[0]; abname[j++]='.'; abname[j++]=' '; for (i=0;i

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a C program to find the abbreviation of a full name without using string library function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Example program for setpixel function in c language?

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.


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


What is string library functions syntax?

String library function is one which is used to perform an operation in C-programming,without which library functions likestrlen(),strcp(),strcmp(),strdup(),strrev(),etc..,.can be performed


How do you write a program in c to compute the power of a number without using the mathh library?

There is a function which can do it for you. You have to include math.h in headers. And then use the function pow(x, y) which returns a value of type double (x and y are double too).pow(x, y) = x to the power of y.


Explain you how you can impliment programme in c language without main function?

You can't. If you have no main function, then there is no entry point to your code and it cannot be executed. Code without a main function is essentially a library. In MS Windows, GUI mode, you don't have to have main function. (WinMain is used instead).

Related questions

Can we execute java program without main function?

no


Can you write a program without specifying the prototype of any function?

You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.


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()


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

C programs do not function without functions.


Example program for setpixel function in c language?

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.


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)(); }


Can you write a program without using any semicolon inside the main function?

not possible dude


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


How can you find a program in Windows 7 without browsing through the program list in the Start Menu?

Use the 'search' function in the Start menu.


What is string library functions syntax?

String library function is one which is used to perform an operation in C-programming,without which library functions likestrlen(),strcp(),strcmp(),strdup(),strrev(),etc..,.can be performed


How do you write a program in c to compute the power of a number without using the mathh library?

There is a function which can do it for you. You have to include math.h in headers. And then use the function pow(x, y) which returns a value of type double (x and y are double too).pow(x, y) = x to the power of y.


Explain you how you can impliment programme in c language without main function?

You can't. If you have no main function, then there is no entry point to your code and it cannot be executed. Code without a main function is essentially a library. In MS Windows, GUI mode, you don't have to have main function. (WinMain is used instead).