how to find string length wihtout using c function?
Answer Posted / ramesh
# include <stdio.h>
# include <conio.h>
void main()
{
int i;
char sring[100];
printf("ENTER THE STRING :");
gets(string);
for(i=1;string[i];i++);
printf("LENGTH IS : %d",i);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we declare variable anywhere in c?
show how link list can be used to repersent the following polynomial i) 5x+2
What is the most efficient way to count the number of bits which are set in an integer?
How can I send mail from within a c program?
What are the differences between Structures and Arrays?
What is the best way of making my program efficient?
How do I convert a string to all upper or lower case?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Explain what is the difference between null and nul?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is the use of #include in c?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is the difference between char array and char pointer?
How many levels of pointers have?