this program hangs after taking first argument:-
#include <stdio.h>
#include <conio.h>
void ellip(char*,...);
int main(int argc,char* argv[]){
printf("a");
ellip("first argument",99,"second arg","thirdarg");
_getch();
return 0;
}
void ellip(char* m,...)
{ char com='c';
for(;;)
{
auto g=0;
while(com=='c')
{
printf("%d\nMatched Continue:-",g++);
scanf("%c",&com);
}
}
}
while the same program with a subtle modification(Addition of space)
scanf("%c ",&com);
Works Fine!
Is this some sort of bug in vc or a problem in my computer?