#include<stdio.h>
typedef enum ss{
a,
b
}s;
int get(s *dbb)
{
*dbb = 1;
return 1;
}
int printss(s dbs)
{
printf("db no is:%d",dbs);
return 2;
}
int main()
{
s db;
get(&db);
printss(db);
return 0;
}
I am getting the deepcheck warning as “unintialised variable” db in the function printss.
But i’m intialising the variable in the function get and using the variable in the function printss.Please help me find the problem
Simply set
dbto any value before usinggetto get it: