Message from C, C++ talks

July 2019

— Architecture

— Hlo

— Hello

— Hii

— 

#include <stdio.h>
void main()
{
char s[1000];
int count = 0,i = 0;
printf("Enter a sentence\n");
scanf("%[^\n]s", s);
while (i < s[i])
{
if (s[i] != ' ')
{
s[count] = s[i];
count++;
}
i++;
}
printf("Length of semtence excluding space is %d",

I want to print the number of character in sentence excluding space
And using while loop and without using #include<string.h>
What should i do further to print the number of character?

— Purge complete.

— Use fgets(var, size, stdin) at scanf

— Hello

— Hi

— Std::cout << “ Hello “ << std::endl;

— Okay

— What is wrong with #include<string.h> ?

— Ntg

— Hi, why rose doesn't work in other groups?

— Can anyone suggest me some good IRC clients for windows which are free of cost and easy to use with good features.

Message permanent page