Part 6 | Functions and Type of Functions | C Programming Malayalam Tutorial

preview_player
Показать описание


Today I will be discussing with you about ‘Functions and its Type’. Also, we will be doing some coding problems related to this particular topic.

I hope you will enjoy today's tutorial and please provide your valuable feedback in the comment session.

09:47 string
18:55 Multi Dimensinal Array
37:08 Functions
40:49 Argument/parameter
41:00 Return value
42:29 Void main
50:37 Function with lout argument without return value
58:13 Function with argument with out return value
01:06:33 Function with argument & with return value
01:14:12 Function without argument &with return value
01:24:32 pointers

Today’s assignment:

#100K Coding Challenge is a series of 10 programming tutorial videos in Malayalam which is an initiative by Team Brototype (Former Crossroads) to teach programming in the simplest possible manner to 1 lakh students across Kerala completely FREE of cost.

Certificates will also be issued to candidates who complete the whole 10 videos and pass the Test successfully.

Video tutorials will be uploaded and published on our Brototype Malayalam (Former Crossroads) YouTube channel.

Participants are requested to subscribe and enable notification on our YouTube channel inorder to get the tutorial videos as soon as they are released.

About us:

Subscribe to Kerala's leading tech-career YouTube channel for free programming tutorials and tech-career videos in Malayalam. Learn the skills and knowledge needed to build a high-income career in IT. Join our community of future tech experts today!

Transform your career with 'Brocamp'—our 12 month Offline & Online training program that places you in a real office environment to master coding and in-demand skills. With over 1700+ successful placements averaging ₹40,000/month, secure your future with our proven career-focused training programs.

Ready to start your journey?
Connect with us: Call/WhatsApp us at 7034395811

To know more about Brocamp, Visit:

Want to connect with Nikhil Kilivayil personally?

Connect us on Social Media:

Connect Nikhil Kilivayi on Social Media:

#programming
Рекомендации по теме
Комментарии
Автор

Sir pointers um koodi parayamo best class i ever heard this class is differ from colllege classes is because of the example and the way the nikhil sir conveying is really aprecitable

mallucr
Автор

I am 46 year old mechanical engineer, working in dubai, i tried to learn "C" since 2001 but i never got a good guidance and i left behind my passion, after i saw ur tutorial videos i started to learn, now i am very passionate about coding .Now i am planning to switch my carrier .i don't know wether this is the right age, but still i decide to continue learning, i am very keen about Blockchain and its technology. I want to become a blockchain developer, after acquiring advance knowledge of programming, plan is to learn solidity . Thanks a lot NIKIL. Thanks a lot for ur wonderful tutorials.I tried to register in your site, but not getting OTP.

antonyjoseph
Автор

7 വർഷം പഠിച്ചിട്ട് ഇപ്പോഴാണ് function മനസ്സിലായത്... Sir ന്റെ ക്ലാസ്സ്‌ ഒരു രക്ഷയില്ല... Thankyou very much for your dedication to make our skills to another level.. ❤️

paul
Автор

I have put a comment 7 days before and today i am writing this to inform that i got a LOI from Quest as trainee engg. As a mechanical engineer graduate, i did not have any knowledge in programming... In that time i saw this channel accidently and started studying. When i completed this video about function... I have been called for the technical interview. And then attend HR interview. The reason for me to get into this position is only because of this channel and Nikhil sir.
Thank you so much ❤

ajuinvlogs
Автор

Function Without Argument With Return Value

int sum();
int main(void){
int res;
res=sum();
printf("Result is %d", res);

return EXIT_SUCCESS;
}

int sum(){
int num1, num2, result;
printf("Enter 2 numbers");
scanf("%d%d", &num1, &num2);
result=num1+num2;
return result;
}

akhilavijayan
Автор

To print full name

#include<stdio.h>
#include<stdlib.h>
int main(){
char name[19], lastname[20];
printf("Enter a name");
scanf(("%s %s"), name, lastname);
printf("Entered name is %s %s", name, lastname);


}

dixsonjoy
Автор

ഞാൻ ഇംഗ്ലീഷ്, ഹിന്ദി കോഡിങ് ക്ലാസ്സ്‌ ട്രൈ ചെയ്തിട്ടുണ്ട്. എങ്ങനെ പഠിപ്പിക്കണം, എവിടെ നിന്ന് സ്റ്റാർട്ട്‌ ചെയ്യണം എന്നു ആരും പറയാറില്ല.പ്രോഗ്രാമിഗിന് ലോകത്തിലെ മികച്ച ക്ലാസ്സ്‌ ക്രോസ്സ്രോഡ്സ് ആണ്. നിങ്ങൾ വേറെ ലെവൽ ആണ് മാഷേ.. 😍😍😍🌹🥰

Silver-Clouds
Автор

Cant Express the happiness in channel is such a gem🔥

jaan
Автор

thanks sir, I don't know even a scanf & printf well before 1st episode but now feel so easy after 6 class.(same like u as +2 bio & cleared CP subject by luck)

__life_with_hope_
Автор

Coding was logic..logic is crossroads..crossroads was success..success was yours..

zakeeanimation
Автор

വളരെ നല്ല അവതരണം 👌
എല്ലാം ചാനലിലെ പോലെത്തെ viewer അല്ല ഇതില്‍ ...ഇതില്‍ subscribe ചെയ്യുന്നവര്‍ വിട്ട് പോവാത്ത ആളുകളാണ് അത്കൊണ്ട് തന്നെ റീച്ച് കിട്ടാന്‍ താമസിക്കും ....onelakh ഇപ്പോ ആവും 10 lakh ഞമ്മളെ ലക്ഷ്യം

salambigbazar
Автор

Function without argument &with return value

int sum();
int main(void) {
int k;
setbuf(stdout, NULL);
k=sum();
printf("Result=%d", k);
return EXIT_SUCCESS;
}


int sum(){
int a, b, c;
setbuf(stdout, NULL);
printf("Enter 2 numbers");
scanf("%d%d", &a, &b);
c=a+b;
return c;
}

pavankrishna
Автор

I still remember cs teacher's confused face when i asked more details about class and function in my +2 years. Now I realised that even he didn't have an
Idea or didn't have the capability to make us understand . Valuable content keep rocking.

Day 6 function without argument with return value challenge
#include <stdio.h>
#include <stdlib.h>
int sum();
int main(void)
{
int c;
setbuf(stdout, NULL);
c=sum();
printf("\nSum of your entered number is : %d", c);
return EXIT_SUCCESS;
}

int sum()
{
int num1, num2, result;
printf("Enter two numbers : ");
scanf("%d%d", &num1, &num2);
result=num1+num2;
return(result);
}

renjunairpr
Автор

Base level training... Wonderful to have such a teacher and explanation is lit..Always smiling .. Spreading smile😁

akshaymohan
Автор

I didn't even know the code for a simple sum before i started this journey with crossroads...this is the best progrming classes that i have ever attended in my life❤️😍thank you so much sir for these beautiful and simple sessions...great job👍even after so many days from uploading this video...still this team gives reply to each and every doubts we havee...thankyou so much...

akshitha_alex
Автор

After 3 hours of rewatching and perseverance to keep going I completed day 6 with full enthusiasm.

VishnuPrakasan-kq
Автор

Today i am in the 6th day of C learning ..Nikhil boss ningalodulla respect koodi varuvanu daily oro videos kanumbolum.Ithrayum easy ayitu oronnum paranju tharumbol sherikum class kazhiyumbol manassu nirayum...Jnan Degree, MCA okke padicha oridathum ithra oru satisfaction kiteetilla. You are really a gem.. you come down to us and explain in a way that we become masters in each topics😍😍..A big salute to you sir for bringing such a good channel for us.This is the real teaching.

Lijo_Kerala
Автор

After studying Python for a year and c++ for another year, I have a limited understanding of both languages. But now learned c language basic within 3 hours and am continued my studies

lionscreations
Автор

int main(void) {
setbuf(stdout, NULL);
char name[20];
printf("Enter your name");
scanf("%s", name);

printf("I think ur name are %s", name);


return EXIT_SUCCESS;
}

amarnadhp
Автор

String
string is a character Array.

char name[4];
printf("%s", name);
scanf("%s", name);

String

char name[44];
printf("Enter your name ");
scanf("%s", name);
printf("Entered string is %s", name);


Multidimensional array Metrix

int i, j, a[3][3];
printf("Enter values\n");
for(i=0;i<3;i++){
for(j=0;j<3;j++){
scanf("%d", &a[i][j]);
}
}
printf("Entered Multidimensional array is\n");
for(i=0;i<3;i++){
for(j=0;j<3;j++){
printf("%d ", a[i][j]);
}
printf("\n");
}


Functions

-> void main() is the entry point for execution in C programing.
-> void is a Keyword ie represents fun() will not return anything but a void value.


Function without arguement without return value.

#include <stdio.h>
void sum();

int main() {
sum();

return 0;
}

void sum(){
int num1, num2, sum;
printf("Enter 2 numbers\n");
scanf("%d%d", &num1, &num2);
sum=num1+num2;
printf("Sum is %d.", sum);
}


Funtion with Arguement without Return value

#include <stdio.h>

sum(int num1, int num2);

int main() {
int a, b;
printf("Enter two values\n");
scanf("%d%d", &a, &b);
sum(a, b);

return 0;
}

sum( num1, num2){
int sum;
sum=num1+num2;
printf("The sum is %d.", sum);
}


Function with arguement with return value

#include <stdio.h>

int sum(int, int);

int main() {
int num1, num2, s;
printf("Enter 2 values\n");
scanf("%d%d", &num1, &num2);

s=sum(num1, num2);

printf("Sum is %d.", s);
return 0;
}
int sum(a, b){
int sum;
sum = a+b;
return sum;
}


Function without Arguement with Return value.

#include <stdio.h>

int sum();

int main() {
int s;
s=sum();
printf("Sum is %d.", s);

return 0;
}
int sum(){
int num1, num2, sum;
printf("Enter 2 numbers\n");
scanf("%d%d", &num1, &num2);
sum =num1+num2;
return sum;
}



Palindrome

#include <stdio.h>
#include <string.h>

int main() {
char str[44];
int i, len, flag=0;
printf(" Enter your string\n");
scanf("%s", str);

len = strlen(str);

for(i=0; i<len/2; i++){
if(str[i] != str[(len-1)-i]){
flag=1;
break;
}
}
if(flag==1){
printf("Not palindrome");
}else{
printf("Palindrome");
}

return 0;
}


Sum of arrays

#include <stdio.h>

int main() {
int s, i, j, a1[44][44], a2[44][44], sum[44][44];
printf("Enter size of array ");
scanf("%d", &s);

printf("Enter values of Array1\n");
for(i=0;i<s;i++){
for(j=0;j<s;j++){
scanf("%d", &a1[i][j]);
}
}
printf("Enter values of Array2\n");
for(i=0;i<s;i++){
for(j=0;j<s;j++){
scanf("%d", &a2[i][j]);
}
}

printf("Array of sum\n");
for(i=0;i<s;i++){
for(j=0;j<s;j++){

printf("%d ", sum[i][j]);
}printf("\n");
}
return 0;
}

functions in array

#include <stdio.h>
int a[44];
int getArray();
int displayArray();

int main() {

printf("enter values of array\n");
getArray();
printf("The values in array is ");
displayArray();

return 0;
}

int getArray(){
int i;
for(i=0;i<4;i++){
scanf("%d", &a[i]);
}
}
int displayArray(){
int i;
for(i=0;i<4;i++){
printf("%d ", a[i]);
}
}

abhinand