SkillBout

@skill_bout


Technical channel

SkillBout

20 Jan, 23:11


Accenture Pattern 1.pptx

SkillBout

20 Jan, 23:11


Accenture Pattern 1.pptx

SkillBout

20 Jan, 23:01


Accenture Coding Set C.pptx

SkillBout

20 Jan, 23:01


Accenture Coding Set B.pptx

SkillBout

20 Jan, 23:01


Accenture Coding (16-20).pptx

SkillBout

20 Jan, 22:56


Accenture Coding (1-5).pptx

SkillBout

20 Jan, 22:56


Accenture Coding (11-15).pptx

SkillBout

20 Jan, 22:56


Accenture Coding (6-10).pptx

SkillBout

20 Jan, 22:56


Accenture Coding (1-5).pptx

SkillBout

20 Jan, 21:56


#include <stdio.h>
#include <stdlib.h>

// Define the functions
int func1() {
printf("This is function 1\n");
return 1;
}

void func2() {
printf("This is function 2\n");
}

float func3() {
printf("This is function 3\n");
return 3.14;
}

// Define a union for possible return types
typedef union {
int i;
float f;
void *v;
} ReturnType;

// Define an enum for the return types
typedef enum {
INT,
VOID,
FLOAT
} ReturnTypeID;

// Define a struct to store the function pointer and its type
typedef struct {
void *func;
ReturnTypeID type;
} FuncEntry;

// Function signatures
typedef int (*FuncPtr1)();
typedef void (*FuncPtr2)();
typedef float (*FuncPtr3)();

// Function call handler
ReturnType callFunc(FuncEntry entry) {
ReturnType result;
switch (entry.type) {
case INT:
result.i = ((FuncPtr1)entry.func)();
break;
case VOID:
((FuncPtr2)entry.func)();
result.v = NULL;
break;
case FLOAT:
result.f = ((FuncPtr3)entry.func)();
break;
}
return result;
}

int main() {
// Array of function entries
FuncEntry functions[] = {
{func1, INT},
{func2, VOID},
{func3, FLOAT}
};

int size = sizeof(functions) / sizeof(functions[0]);

for (int i = 0; i < size; i++) {
ReturnType ret = callFunc(functions[i]);
// Handle the return value based on type
switch (functions[i].type) {
case INT:
printf("Return value: %d\n", ret.i);
break;
case VOID:
printf("No return value\n");
break;
case FLOAT:
printf("Return value: %.2f\n", ret.f);
break;
}
}

return 0;
}

SkillBout

20 Jan, 18:26


https://www.instagram.com/reel/C3Wj_dPKCJU/?igsh=MTNzYmQzaHgxbXoxaQ==

SkillBout

20 Jan, 16:17


https://appopener.ai/yt/el6g89zkm

Pseudo code

SkillBout

20 Jan, 16:04


Tree part 1 : https://appopener.ai/yt/lao00a5f1

Coming up with all the data structures
Do share and care

SkillBout

20 Jan, 11:47


Hy all ,
This is idris here !!!
Do register for online c lang : https://forms.gle/qSw9Thh5KiMkpnwU7

Me idris will be personally taking this class . Share with every one

SkillBout

20 Jan, 11:10


Pointers:https://youtu.be/DhHAREc_1uY

SkillBout

20 Jan, 10:25


https://youtu.be/U81s_5TU2rQ

SkillBout

20 Jan, 09:20


Infytq pattern 2023: https://youtu.be/z3hA_YKLXQo

SkillBout

20 Jan, 08:16


https://youtube.com/shorts/uuIJPO0qmwE?feature=share

SkillBout

20 Jan, 08:13


Watch watch watch 😍: https://youtu.be/Bzu0km9giVg