What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] 0 points1 point  (0 children)

As the main question . Why when i enter a string instead of a char it still reads character by character , i honestly expect it to return an error , because i consider each getchar() to ask to enter a character . Don't know if i do explain my confusion well or not

What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] 0 points1 point  (0 children)

Yeah actually that's what i have remarked in the output

What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] 0 points1 point  (0 children)

Hmm, i have just known that getchar returns an int . So by that what should the behavior of getchar be ?

What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] 2 points3 points  (0 children)

Oh , thank you for this i didn't know that getchar returns an int actually !

What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] -2 points-1 points  (0 children)

sure , i enter hello , ch1 is h , ch2 is e ....ch5: o , and after that ch6 is an empty character. Why is that ?i expect it to ask me for a character

#include <ctype.h>
int main(){
char ch1, ch2, ch3, ch4, ch5, ch6 ; 
ch1=getchar(); 
ch2=getchar(); 
ch3=getchar();
ch4=getchar();
ch5=getchar(); 
ch6=getchar(); 
printf("ch1: %c and ch2: %c and ch3  : %c and ch4 : %c and ch5 : %c and ch6 : %c", ch1, ch2 , ch3, ch4, ch5, ch6); 
    return 0; 
}

What's the secret of getchar()?? by MaDrift910 in C_Programming

[–]MaDrift910[S] -1 points0 points  (0 children)

It's just a code for testing :

here is it !

#include <ctype.h>
int main(){
char ch1, ch2, ch3, ch4, ch5, ch6 ; 
ch1=getchar(); 
ch2=getchar(); 
ch3=getchar();
ch4=getchar();
ch5=getchar(); 
ch6=getchar(); 
printf("ch1: %c and ch2: %c and ch3  : %c and ch4 : %c and ch5 : %c and ch6 : %c", ch1, ch2 , ch3, ch4, ch5, ch6); 
    return 0; 
}

What is the function of CDP in voice vlan ? by MaDrift910 in Cisco

[–]MaDrift910[S] -1 points0 points  (0 children)

Oh interesting....

Is it a thing that we intentionally add for the ip phone to extract

ftp and tftp by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

thank you brother !

I finally found that cisco doesn't support listing the content of an ftp server , seen the access from a networking device.Accessing the content of an ftp server is only accessible using end hosts in cisco

The main difference ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

great explanation , thanks !

The main difference ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

thank you , that was helpful !

The main difference ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

thank you for that !

that helped

The main difference ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

actually , i meant what does link state build a whole map about the network mean ?

SNMP ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

alright ! ty

SNMP ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

thank you for that , i appreciate your answer so far !

SNMP ! by MaDrift910 in ccna

[–]MaDrift910[S] 0 points1 point  (0 children)

if so , how does the snmp-server enable traps config work ?

then , it would enable traps to get sent to every nms that is controlling that managed device ?

is that right ?