I like how you went through your phases on your videos. first photo editing, then computer build, now to video editing, then to video games, then to coding
Omg!!!!!!!!! You are amazing bucky!!!!! I just want to say truckload of thank you!!!!! I am so so sooo much thankful for your videos...I am getting better and better because of your tutorials ...cause before watching your lectures, I was soo much bad in programming( seriously, my teacher don't know how to teach)....but now I am getting more and more better at programming❤ ....Thank You soo much❤❤
I'm taking C programming in college and I really didn't have a background in programming! My professor is awesome but has a heavy accent! Plus he goes so freaking fast!! Your tutorials are helping me so freaking much!! Thanks for taking your time to teach us! ;) now I feel way more comfortable in coding ;)
@@emregumus6152 yes, I’m a software engineer now and I graduated with a B.S in Computer Information Technology. There were times when I though I just couldn’t do it, but you just have to work hard and give your very best, and not give up! Study and practice and practice a lot! And eventually you will learn to code ! You got this bro!
@@DanielGuzman31 thank you man I appreciate your reply. I just started a month ago and struggling but im studying at least 8 hours a day let us see if I can manage it like you.
@@emregumus6152 you got this! It takes time, lots of practice and lots of patience! Also C, C++ aren’t just the only programming languages out there, there’s better languages and easier languages to learn like Python, JS, Java and others :) so much to learn in this career ! Keep it up !
Bucky you re awesome Bro I have Use Two Shorthand if else in a single Printf statement and Made this #include #include int main(){ int friends; char name[6]; printf("What is Your Name? "); scanf(" %s", name); printf("How Many Friends Do you Have? "); scanf(" %d", &friends); printf("%s has %s %d Friend%s ", name, ((friends!=1) ? "" : "Only"),friends, ((friends!=1) ? "s" : "")); return 0; }
This can be most helpful while printing an array with elements separated by comma. You always end up with last element appended by comma. Here is the code of what am talking about int arr[11]={1,2,4,5,6,4,6,4,4,4,9}; int sArr = sizeof arr/ sizeof arr[0]; for(int i=0;i
After some playing-around I found that you must, of course, use single quotation marks for your character entry BUT you must also use a 'space' in between your empty entry as the compiler will not like it. I think it's easier the way Bucky does it since you won't have to remember this little rule. #include int main() { int friends; printf("How many friends? "); scanf(" %d", &friends); printf("Friend%c ", (friends != 1) ? 's' : ' ' ) ; //
im confused!!! when do you use "&" for when you assign the value from scanf 1. char lastName[20]; printf("Enter your last name: "); scanf(" %s", lastName); 2. char answer; printf("Do you like bagels? (y/n) "); scanf(" %c", &answer);
you only put & to array, lastName is array because you insert [20] behinde lastName, you dont need to put & if you din put [20] behind lastName, that is the one that decide wheather u need to put & or not
This code is not working, the headers are there as well, just didn't copy them int main() { char lastName[20]; printf("Enter your last name: "); scanf(" %s", lastName); (lastName(0) < 'M') ? printf("Blue Team") : printf("Red Team") ; return 0; }
Well, in Arabic it's much more complicated. We have the endings like this an ending for singular (works for 1, 20, 100, 1000,... ,11->102, 111->201, 211-302, ...) another formula for two objects an ending for plural (works for 0, 3->10, 103->110, 203->210, ...)
I'm using Xcode version of C programming to do the challenge. Apparently every time you run the programme, the rand() function will keep on generating same value. Searched internet and found the solution. That is to put srand(time(NULL)) at the start of your code (something to do with seeding.. not sure how it works). Anyone kind enough to explain it?
Thanks a lot Bucky for your time, the syntax is not clear, I mean what is after the test is it a ? Or a ; also between truecode and the false code is it a comma or what. Thnx for your time
Can we use the statement without printf method. I have done a program but it seems that the output is showing only when I use printf function only. Program is defined below Int main { Int i=0; Name[5]; Printf("enter name:"); Scanf("%s",& Name); (Name[0]='a')?i==5:i==3;//here by using ptrintf the output is obtained,but cannot assign a value :( // Printf("%d",i); Return(0); } The problem is the the value for I have assigned is not printing the output,i must be 5 or 3 but it is showing 0 itself the value I have assigned before.please anyone in this universe help me,bucky are you out there.
a quick question....can we use our "conventional if else" instead of the shorthand if else to run the program?...if yes, then how?...would be grateful to anybody willing to clarify my doubt
My code is exactly like yours and I always get the same team. If lastName starts with a 'N' or an 'R' i always get Red team. Pls help. #include #include #include int main(){ char lastName[20]; printf("Enter your last name: "); scanf(" %s", lastName); (lastName[0] < 'M') ? printf("Blue Team ") : printf("Red Team "); return 0; }
i think it would be like this: #include #include int main() { int friends; scanf(" %d",&friends); printf("I have %d friend%s",friends,(friends==1) ? "":"s"); return 0;} I may be wrong though,but I hope I helped you.
Make sure what you're typing starts with an uppercase letter. All lowercase letters have a greater 'value' than all uppercase letters so m > M and since m < M == "false" then it will always print red
I tried use %c instead of %s in his code, but it doesn't work. Am I doing something wrong? int main() { int numberOfFriends=1; printf("I have %d friend%c. ", numberOfFriends (numberOfFriends!=1)? "s":"" ); return 0; }
// (test) ? truecode : falsecode ;(this is the format for short if else statement char lastname[20]; printf("what is your last name? "); scanf("%s",lastname); (lastname[0] < 'm') ? printf("Blue team ") : printf("Red team "); //agar uper capital M dalega toh surname k time bhi capital se start karna int friend; printf("how many friends you have now? "); scanf("%d",&friend); printf("i have %d friend%s ", friend, (friend!=1) ? "s" : "");
I foun that guys printf("%d %s", i+1, (i+1 == 1) ? "st" : (i+1 == 2) ? "nd" : (i+1 == 3) ? "rd" : "th"); it jumps to the other side of tenary function if not true, keeps going like a nested loop until it gets to the "th"
Absolutely! I have been building a large (but useless) program while making my way through these tutorials. I highly recommend trying things and making up your own algorithms for solving problems or organizing data. Anything! As I go along, I keep adding new things I've learned and improving my program. .......Get rid of the one%s that %s yours! ", (actcats == 3) ? "" : "s", (actcats == 3) ? "isn't" : "aren't"); I also put lots of notes in all of these tutorial sources as I write them and use them like a reference book. It's better than reading a book on programming since YOU were the one who made the example.
***** Well, I'm a native Russian speaker so I'm not tricked by anything... And it is actually a hard language. Maybe learning it on a very basic level isn't hard, but you can say that about every language.
***** How good is your Russian? Because it's objectively difficult. Like I said, it's simple on the very basic level, but it's really hard to learn it on a higher level with proper grammar and shit. The alphabet has nothing to do with it.
***** First off, you didn't answer my question, which leads me to believe that you actually don't speak Russian. Secondly, I already said that I speak Russian, but I also speak Lithuanian, which is an even bigger pain in the ass than Russian. I don't believe it to be harder, I KNOW that it's OBJECTIVELY harder.
it doesnet work with me !! ----------------------------------------------------------- #include #include int main() { int age; printf("how old are you ?: "); scanf(" %d" ,age); (age>=18) ? printf("you can enter") : printf("you can not enter"); } -------------------------------------- even if write the programme like the usual way it doesn't work !!! #include #include int main() { int numbers; printf("enter your number here: "); scanf(" %d", numbers); if(numbers