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
How can I recover the file name given an open stream or file descriptor?
What are the types of data structures in c?
What is the benefit of using #define to declare a constant?
Can the curly brackets { } be used to enclose a single line of code?
What are the different types of constants?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
what is ur strangth & weekness
How do you view the path?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
List some applications of c programming language?
For what purpose null pointer used?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
using only #include
Why is structure important for a child?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.