Cranes Varsity is a pioneer Technical Training institute turned EdTech Platform offering Technology educational services for over 24 years. Being a trusted partner of over 5000+ reputed Academia, Corporate & Defence Organizations, we have successfully trained 1 Lakh+ engineers and placed 70,000+ engineers.

Cranes Varsity offers high-impact hands-on technology training to Graduates, Universities, Working Professionals, and the Corporate & Defence sectors. We offer internships, diploma, and PG diploma programs in Embedded, VLSI & Data Science. As a trusted recruitment & Training partner, we engage our Corporate through the "Hire, Train & Deploy" Model.

We stand by our principle – "We Assist Until We Place"- consistently strive for participants' satisfaction and dedication to placement.


Cranes Varsity

/* How many bytes of memory is leaked in this code */

int main( )
{
char data[10] = "SIKANDER";

char *ptr = strdup( data );

printf("%s %s\n",data, ptr);

return 0;
}

1 month ago | [YT] | 0

Cranes Varsity

int main()
{
int res = 0;

res = strcmp("CAT" , "CATTLE");
printf(" %d" , res);

return 0;
}

1 month ago | [YT] | 0

Cranes Varsity

// What is the output of this code

void myswap(int *pa,int *pb)
{
int *temp = pa;
pa = pb;
pb = temp;
printf("%d %d " , *pa, *pb);
}

int main()
{
int a = 5;
int b = 8;
myswap(&a, &b);
printf("%d %d " , a, b);
}

1 month ago | [YT] | 0

Cranes Varsity

// What is the output of this code assuming a 64-bit system

int main( )
{
char *words[ ] = { "Cranes","Varsity",
"is","a","pioneer",
"Technical","Training","Institute"};
printf("%zu ", sizeof( words[0] ) );
printf("%zu ", sizeof( words[1] ) );
printf("%zu ", sizeof( words[2] ) );
return 0;
}

1 month ago | [YT] | 0

Cranes Varsity

# What will this python code output?

names = ['Arpita', 'Mohsin', 'Sikander']

print(names[-1])
print(names[-1][-1])
print(names[-1][-1][-1])

1 month ago | [YT] | 0

Cranes Varsity

//What is the output of below C Code?
#include <stdio.h>
int main()
{
int x = 0;
int y = 0;

x++ && printf("x = %d ",x);
y++ || printf("y = %d ",y);

}

1 month ago | [YT] | 0

Cranes Varsity

# What will this output in Python?

a = [1 , 3 , 6]
b = list(a)
c = a

print(a == b)
print(a is b)
print(a is c)

1 month ago | [YT] | 0

Cranes Varsity

int main( )
{
int a = 5;

a = 1, 2, 3;

printf("a = %d \n", a);

return 0;
}

1 month ago | [YT] | 0

Cranes Varsity

int main( )
{
char name[] = "SIKANDER";
int n = strlen(name);

for(int i = 0 ; i < n ; i++)
printf("%c",name[i]);

strcpy(name , "");

for(int i = 0 ; i < n ; i++)
printf("%c",name[i]);

}

1 month ago | [YT] | 0

Cranes Varsity

#define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0]))
int array[] = {23,34,12,17,204,99,16};

int main()
{
int d;
for(d = -1 ; d <= (TOTAL_ELEMENTS - 2) ; d++)
printf("%d ",array[d+1]);

return 0;
}

1 month ago | [YT] | 0