Ultima Filium
Ultima Filium
finally I got the answer
shriman_deepak
Google it
Already
shriman_deepak
No result
Hello
Ok
Hello
Hello I have small double pls clear that any one?
Hello
How to build one new algorithm of c language
GodXAnubis
Hello
Any c language material their? Pls send
klimi
cppreference.com
Anonymous
int i = 1, j = (++i)++; How is this okay on C++ but wrong on C?
Anshika
Any one tell about one project of c and c ++
Disha
#include<stdio.h> int main() { int num1,num2; int result= sum(num1,num2); printf("Enter two numbers:"); scanf("%d",&num1,&num2); printf("Sum is %d",result); } int sum(int a,int b); { return result a+b; }
Disha
whats the problem in line 12 plz tell me
Anonymous
int result = sum(num1,num2);
Disha
Try return 0;
same problem
Disha
Pritam
Hey guys
shriman_deepak
i write it line 5
Why there's a and b ? Why not num1 and num2 ?
shriman_deepak
a and b are not declared value
Disha
still error in line 12
shriman_deepak
What's the actual question ?
shriman_deepak
Like i can see a and b aren't declared variable.
Anonymous
still error in line 12
create prototype of your function above main function
Anonymous
I'm just saying that
shriman_deepak
Anonymous
+
Disha
expected identifier or ' ( ' before '{' token
Anonymous
Same error
Disha
expected identifier or ' ( ' before '{' token
Anonymous
I'd have let him find the solution, why did you sent him the whole code (wrong too).
Disha
it is showing
Pritam
#include<stdio.h> int sum(int a,int b); int main() { int num1,num2; printf("Enter two numbers:"); scanf("%d %d",&num1,&num2); printf("Sum is %d",sum(num1,num2)); return 0; } int sum(int a,int b) { return a+b; }
Captain
I'd less care
Disha
ok
Disha
tnx
Anonymous
I just find wrong giving a direct solution to people, they won't learn anything by that way. I give tips how to fix errors most of the time, I give the code only after a desperate amount of time
Pritam
i want to start coding in leetcode but i didnt find right way to do it any one can help me plz
Anonymous
Me too wanna learn c
klimi
well then... i don't think anyone will be willing to teach you privately but i am sure you can find a lot of material online
Anonymous
Well YouTube is not teaching anymore
Anonymous
I prefer blogs or site
mayway
Int a; Int b=43; a=10; b=3; ???? Pls explain... I'm new to programming 😅
Anonymous
Can u guys give a web to learn c language
BOSS
Minimum Length Word Send Feedback Given a string S (that can contain multiple words), you need to find the word which has minimum length. Note : If multiple words are of same length, then answer will be first minimum length word in the string. Words are seperated by single space only. Input Format : String S Output Format : Minimum length word Constraints : 1 <= Length of String S <= 10^5 Sample Input 1 : this is test string Sample Output 1 : is Sample Input 2 : abc de ghihjk a uvw h j Sample Output 2 : a
BOSS
koi batana kaisa hoga ya
mayway
what you don't understand here?-_-
That there is no value of a and why int is no written in other a and b??
olli
i am not tried yet
You should read the rules, we are not here to do your assignments. If you have a question feel free to ask
Anonymous
Which website is best for c language j wanna learn it please any help u can do
Anonymous
Thx
BOSS
You should read the rules, we are not here to do your assignments. If you have a question feel free to ask
can you tell me that how we can find the minimum length word in string ...I am not able to think approach
olli
can you tell me that how we can find the minimum length word in string ...I am not able to think approach
The easiest way would probably be to split the string into words, iterate over them, calculate the length and keep the shortest. A more efficient way would be to traverse the string, remember the beginning of a word and once you reach the end check the length and keep the minimum.
mayway
Int a; Int b=43; a=10; b=3; ???? Pls explain... I'm new to programming 😅
mayway
That there is no value of a and why int is no written in other a and b??
GodXAnubis
Declaring and intializing the var
GodXAnubis
Once declared no need to declare again
GodXAnubis
In 3rd and 4th line we are giving a new value to them
mayway
Ok
Captain
I'd have let him find the solution, why did you sent him the whole code (wrong too).
Btw what was wrong #include<stdio.h> int sum(int a,int b); int main() { int num1{},num2{}; printf("Enter two numbers:"); scanf("%d %d",&num1,&num2); int result = sum(num1,num2); printf("Sum is %d",result); } int sum(int a,int b) { return a+b; }