python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to input just one at scanf?
char command[6];
int command_num=0;
scanf("%s %d", command, &command_num);
If command is "top", I want to input only command, not command_num.
But when i input just command, i...
object404
Votes: 0
Answers: 1
Why when I ask for input of char first code work fine . But when I ask for input of integer value it does not ask for char input
As you can see this code work fine when I ask for char input first It work without any problem.As you can see this code work fine when I ask for char input first It work without any problem.As you can...
Nishant Pandey
Votes: 0
Answers: 0
Scanf not working properly with "%c" but works
#include<stdio.h>
int main(){
char mathoperation;
int num1,num2;
printf("Give the first number of you opperation : ");
scanf("%d",&num1);
printf("...
Piyush Chauhan
Votes: 0
Answers: 0
Type conversion issues unsigned char, string, hex
The following code has several issues - for which I'm kindly asking for your input / corrections / feedback - of various types: first, I can't get it to do what I'd like to, namely pass it a "wo...
cg79
Votes: 0
Answers: 1